From 899a5b3b829767786782699155a3422b4b1d8f5c Mon Sep 17 00:00:00 2001 From: decentral1se Date: Fri, 28 May 2021 11:36:24 +0200 Subject: [PATCH] Wire up db_password --- compose.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/compose.yml b/compose.yml index 48bfe54..6dfd419 100644 --- a/compose.yml +++ b/compose.yml @@ -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