2022-01-31 20:31:00 +00:00
|
|
|
secrets:
|
2022-01-31 21:30:08 +00:00
|
|
|
postgres_db:
|
|
|
|
file: ./secrets/postgres_db.txt
|
|
|
|
postgres_user:
|
|
|
|
file: ./secrets/postgres_user.txt
|
|
|
|
postgres_password:
|
|
|
|
file: ./secrets/postgres_password.txt
|
|
|
|
nextcloud_admin_user:
|
|
|
|
file: ./secrets/nextcloud_admin_user.txt
|
|
|
|
nextcloud_admin_password:
|
|
|
|
file: ./secrets/nextcloud_admin_password.txt
|
2022-01-31 20:31:00 +00:00
|
|
|
|
2022-02-08 18:14:51 +00:00
|
|
|
networks:
|
|
|
|
frontend:
|
|
|
|
external: true
|
|
|
|
name: ${DOCKER_PROXY_NETWORK}
|
|
|
|
backend:
|
|
|
|
|
2022-01-31 20:31:00 +00:00
|
|
|
services:
|
|
|
|
db:
|
2022-01-31 21:30:08 +00:00
|
|
|
image: postgres:${POSTGRES_TAG}
|
2022-01-31 20:31:00 +00:00
|
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
2022-01-31 21:30:08 +00:00
|
|
|
- ${VOLUME_PATH}/var/lib/postgresql/data:/var/lib/postgresql/data:rw
|
|
|
|
secrets:
|
|
|
|
- postgres_db
|
|
|
|
- postgres_user
|
|
|
|
- postgres_password
|
2022-02-08 18:14:51 +00:00
|
|
|
networks:
|
|
|
|
- backend
|
2022-01-31 20:31:00 +00:00
|
|
|
environment:
|
2022-01-31 21:30:08 +00:00
|
|
|
POSTGRES_DB_FILE: /run/secrets/postgres_db
|
|
|
|
POSTGRES_USER_FILE: /run/secrets/postgres_user
|
|
|
|
POSTGRES_PASSWORD_FILE: /run/secrets/postgres_password
|
2022-01-31 20:31:00 +00:00
|
|
|
|
|
|
|
redis:
|
|
|
|
image: redis:alpine
|
|
|
|
restart: unless-stopped
|
2022-02-08 18:14:51 +00:00
|
|
|
networks:
|
|
|
|
- backend
|
2022-01-31 20:31:00 +00:00
|
|
|
|
|
|
|
nextcloud:
|
|
|
|
build:
|
|
|
|
context: nextcloud
|
|
|
|
args:
|
|
|
|
NEXTCLOUD_TAG: ${NEXTCLOUD_TAG}
|
|
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
2022-01-31 21:30:08 +00:00
|
|
|
- ${VOLUME_PATH}/var/www/html:/var/www/html:rw
|
2022-01-31 20:31:00 +00:00
|
|
|
secrets:
|
2022-01-31 21:30:08 +00:00
|
|
|
- postgres_db
|
|
|
|
- postgres_user
|
|
|
|
- postgres_password
|
|
|
|
- nextcloud_admin_user
|
|
|
|
- nextcloud_admin_password
|
2022-02-08 18:14:51 +00:00
|
|
|
networks:
|
|
|
|
- frontend
|
|
|
|
- backend
|
2022-01-31 20:31:00 +00:00
|
|
|
environment:
|
2022-01-31 21:30:08 +00:00
|
|
|
POSTGRES_PASSWORD_FILE: /run/secrets/postgres_password
|
|
|
|
POSTGRES_DB_FILE: /run/secrets/postgres_db
|
|
|
|
POSTGRES_USER_FILE: /run/secrets/postgres_user
|
|
|
|
POSTGRES_HOST: db
|
|
|
|
NEXTCLOUD_ADMIN_PASSWORD_FILE: /run/secrets/nextcloud_admin_password
|
|
|
|
NEXTCLOUD_ADMIN_USER_FILE: /run/secrets/nextcloud_admin_user
|
2022-01-31 20:31:00 +00:00
|
|
|
REDIS_HOST: redis
|
2022-02-08 23:15:15 +00:00
|
|
|
NEXTCLOUD_TRUSTED_DOMAINS: ${NEXTCLOUD_DOMAIN}
|
2022-01-31 20:31:00 +00:00
|
|
|
OVERWRITEPROTOCOL: https
|
|
|
|
depends_on:
|
|
|
|
- db
|
|
|
|
- redis
|
2022-01-31 20:48:54 +00:00
|
|
|
|
2022-01-31 21:30:36 +00:00
|
|
|
cron:
|
|
|
|
image: nextcloud:${NEXTCLOUD_TAG}
|
|
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
|
|
|
- ${VOLUME_PATH}/var/www/html:/var/www/html
|
2022-02-08 18:14:51 +00:00
|
|
|
networks:
|
|
|
|
- backend
|
2022-01-31 21:30:36 +00:00
|
|
|
entrypoint: /cron.sh
|
|
|
|
depends_on:
|
|
|
|
- db
|
|
|
|
- redis
|