From 5e295f9e9b9a519c62e402a30d8a9fa65aaea691 Mon Sep 17 00:00:00 2001 From: Sebastian Schmittner Date: Wed, 24 Apr 2024 10:42:39 +0200 Subject: [PATCH] db liveness probe fixed Signed-off-by: Sebastian Schmittner --- docker-compose.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 24029d5e..b7e03c22 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -5,7 +5,7 @@ services: restart: unless-stopped image: 'postgres:14.4' healthcheck: - test: ['CMD', 'pg_isready', '-q', '-d', 'postgres', '-U', 'root'] + test: ['CMD', 'pg_isready', '-q', '-d', 'postgres', '-U', '$KC_POSTGRES_USER'] timeout: 45s interval: 10s retries: 10 @@ -55,7 +55,7 @@ services: image: 'postgres:14.4' restart: unless-stopped healthcheck: - test: ['CMD', 'pg_isready', '-q', '-d', 'postgres', '-U', 'root'] + test: ['CMD', 'pg_isready', '-q', '-d', 'postgres', '-U', '$DB_USERNAME'] timeout: 45s interval: 10s retries: 10