Files
selfoss/compose.postgres.yml
3wc 110e990d78
All checks were successful
continuous-integration/drone/push Build is passing
Rename services, add EXTRA_DOMAINS
See compose-stacks/organising#15 & compose-stacks/organising#19
2020-10-06 01:39:45 +02:00

38 lines
705 B
YAML

---
version: '3.8'
services:
db:
image: "postgres:9.6.5"
volumes:
- "db:/var/lib/postgresql/data"
networks:
- internal
environment:
POSTGRES_USER: selfoss
POSTGRES_PASSWORD_FILE: /run/secrets/db_password
POSTGRES_DB: selfoss
secrets:
- db_password
selfoss:
networks:
- internal
depends_on:
- db
secrets:
- db_password
environment:
- SELFOSS_DB_HOST=db
- SELFOSS_DB_NAME=selfoss
- SELFOSS_DB_USERNAME=selfoss
- SELFOSS_DB_PASSWORD_FILE=/run/secrets/db_password
volumes:
db:
secrets:
db_password:
external: true
name: ${STACK_NAME}_db_password_${DB_PASSWORD_VERSION}