58 lines
1.7 KiB
YAML
58 lines
1.7 KiB
YAML
name: nextcloud
|
|
|
|
services:
|
|
nextcloud-db:
|
|
image: postgres@sha256:7a396fd264a2067788b6551122b50f162bf6136312c7fc9d74381cb92c648382
|
|
restart: unless-stopped
|
|
env_file:
|
|
- /volume1/xtao-data/nextcloud/secrets/postgres.env
|
|
networks:
|
|
- nextcloud_internal
|
|
volumes:
|
|
- /volume1/xtao-data/nextcloud/postgres:/var/lib/postgresql/data
|
|
|
|
nextcloud-redis:
|
|
image: redis@sha256:b1addbe72465a718643cff9e60a58e6df1841e29d6d7d60c9a85d8d72f08d1a7
|
|
restart: unless-stopped
|
|
command: ["redis-server", "/usr/local/etc/redis/redis.conf"]
|
|
networks:
|
|
- nextcloud_internal
|
|
volumes:
|
|
- /volume1/xtao-data/nextcloud/redis:/data
|
|
- /volume1/xtao-data/nextcloud/secrets/redis.conf:/usr/local/etc/redis/redis.conf:ro
|
|
|
|
nextcloud-web:
|
|
image: nextcloud@sha256:cbe9aaba3bca1093510ff51b48c84abb412b70fb037c1b77b77e703b1ee63bb7
|
|
restart: unless-stopped
|
|
depends_on:
|
|
- nextcloud-db
|
|
- nextcloud-redis
|
|
env_file:
|
|
- /volume1/xtao-data/nextcloud/secrets/nextcloud.env
|
|
networks:
|
|
- nextcloud_internal
|
|
- xtao_edge_internal
|
|
volumes:
|
|
- /volume1/xtao-data/nextcloud/html:/var/www/html
|
|
- /volume1/xtao-data/nextcloud/data:/var/www/html/data
|
|
|
|
nextcloud-cron:
|
|
image: nextcloud@sha256:cbe9aaba3bca1093510ff51b48c84abb412b70fb037c1b77b77e703b1ee63bb7
|
|
restart: unless-stopped
|
|
depends_on:
|
|
- nextcloud-db
|
|
- nextcloud-redis
|
|
entrypoint: /cron.sh
|
|
env_file:
|
|
- /volume1/xtao-data/nextcloud/secrets/nextcloud.env
|
|
networks:
|
|
- nextcloud_internal
|
|
volumes:
|
|
- /volume1/xtao-data/nextcloud/html:/var/www/html
|
|
- /volume1/xtao-data/nextcloud/data:/var/www/html/data
|
|
|
|
networks:
|
|
nextcloud_internal:
|
|
driver: bridge
|
|
xtao_edge_internal:
|
|
external: true
|