|
|
@@ -0,0 +1,60 @@
|
|
|
+version: "3.0"
|
|
|
+services:
|
|
|
+ nextcloud:
|
|
|
+ image: lscr.io/linuxserver/nextcloud:latest
|
|
|
+ container_name: nextcloud
|
|
|
+ ports:
|
|
|
+ - 10006:443 # 按需配置
|
|
|
+ env_file:
|
|
|
+ - .env
|
|
|
+ volumes:
|
|
|
+ - ./config:/config
|
|
|
+ - ./data:/data
|
|
|
+ - /share/CACHEDEV1_DATA:/mnt/NAS # 按需配置
|
|
|
+ restart: always
|
|
|
+ networks:
|
|
|
+ - maple-proxy # Nginx代理网络
|
|
|
+ - nextcloud
|
|
|
+ depends_on:
|
|
|
+ - database
|
|
|
+ - redis
|
|
|
+ redis:
|
|
|
+ image: redis:6.2-alpine@sha256:80cc8518800438c684a53ed829c621c94afd1087aaeb59b0d4343ed3e7bcf6c5
|
|
|
+ container_name: nextcloud_redis
|
|
|
+ restart: always
|
|
|
+ networks:
|
|
|
+ - nextcloud
|
|
|
+ database:
|
|
|
+ image: tensorchord/pgvecto-rs:pg14-v0.1.11
|
|
|
+ container_name: nextcloud_postgres
|
|
|
+ restart: always
|
|
|
+ ports:
|
|
|
+ - 12000:5432 # 按需配置
|
|
|
+ env_file:
|
|
|
+ - .env
|
|
|
+ volumes:
|
|
|
+ - ./pgdata:/var/lib/postgresql/data/pgdata
|
|
|
+ networks:
|
|
|
+ - nextcloud
|
|
|
+ onlyoffice:
|
|
|
+ image: onlyoffice/documentserver:latest
|
|
|
+ container_name: onlyoffice
|
|
|
+ restart: always
|
|
|
+ ports:
|
|
|
+ - 13000:443 # 按需配置
|
|
|
+ env_file:
|
|
|
+ - .env
|
|
|
+ depends_on:
|
|
|
+ - redis
|
|
|
+ networks:
|
|
|
+ - maple-proxy # Nginx代理网络
|
|
|
+ - nextcloud
|
|
|
+ volumes:
|
|
|
+ - ./ssl/onlyoffice.crt:${SSL_CERTIFICATE_PATH}
|
|
|
+ - ./ssl/onlyoffice.key:${SSL_KEY_PATH}
|
|
|
+ - ./onlyoffice_data:/var/www/onlyoffice/Data
|
|
|
+ - ./onlyoffice_log:/var/log/onlyoffice
|
|
|
+networks:
|
|
|
+ nextcloud: null
|
|
|
+ maple-proxy:
|
|
|
+ external: true
|