Wire up db_password

This commit is contained in:
decentral1se 2021-05-28 11:36:24 +02:00
parent 57cdd8e23f
commit 899a5b3b82
Signed by: decentral1se
GPG Key ID: 92DAD76BD9567B8A
1 changed files with 5 additions and 2 deletions

View File

@ -10,10 +10,13 @@ services:
test: ["CMD", "pg_isready", "-U", "postgres"]
volumes:
- postgres:/var/lib/postgresql/data
secrets:
- db_password
environment:
- POSTGRES_PASSWORD=${DB_PASS}
- POSTGRES_USER=${DB_USER}
- POSTGRES_DB=${DB_NAME}
- POSTGRES_PASSWORD=${DB_PASS}
- POSTGRES_PASSWORD_FILE=/run/secrets/db_password
- POSTGRES_USER=${DB_USER}
redis:
image: redis:6.0-alpine