mirror of
https://github.com/Thumbscrew/nextcloud-docker-compose.git
synced 2025-04-12 10:13:43 +00:00
25 lines
575 B
YAML
25 lines
575 B
YAML
services:
|
|
db:
|
|
image: postgres:${POSTGRES_TAG}
|
|
restart: unless-stopped
|
|
volumes:
|
|
- ${VOLUME_PATH}/var/lib/postgresql/data:/var/lib/postgresql/data:rw
|
|
secrets:
|
|
- postgres_db
|
|
- postgres_user
|
|
- postgres_password
|
|
networks:
|
|
- backend
|
|
environment:
|
|
POSTGRES_DB_FILE: /run/secrets/postgres_db
|
|
POSTGRES_USER_FILE: /run/secrets/postgres_user
|
|
POSTGRES_PASSWORD_FILE: /run/secrets/postgres_password
|
|
nextcloud:
|
|
environment:
|
|
POSTGRES_HOST: db
|
|
depends_on:
|
|
- db
|
|
cron:
|
|
depends_on:
|
|
- db
|