From bcdaedba9b8d5b2e0703793be75004d5ec65027a Mon Sep 17 00:00:00 2001 From: Cameron King <1435678+cameroncking@users.noreply.github.com> Date: Mon, 17 Mar 2025 10:58:57 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B(backend)=20add=20user/db=20to=20pg?= =?UTF-8?q?=20healthchecks?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Adds PostgreSQL user and database names to the docker-compose.yaml healthchecks. This resolves an error that appears in the logs, where 'root' is used by default. --- docker-compose.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 97ad835f..01d3b06c 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -4,7 +4,7 @@ services: postgresql: image: postgres:16 healthcheck: - test: ["CMD-SHELL", "pg_isready"] + test: ["CMD-SHELL", "pg_isready -d $${POSTGRES_DB} -U $${POSTGRES_USER}"] interval: 1s timeout: 2s retries: 300 @@ -194,7 +194,7 @@ services: kc_postgresql: image: postgres:14.3 healthcheck: - test: ["CMD-SHELL", "pg_isready"] + test: ["CMD-SHELL", "pg_isready -d $${POSTGRES_DB} -U $${POSTGRES_USER}"] interval: 1s timeout: 2s retries: 300