From 16acd145a37498c9cbea8f2b230fb6b3eb6d540b Mon Sep 17 00:00:00 2001 From: hsiegeln <37154749+hsiegeln@users.noreply.github.com> Date: Sat, 4 Apr 2026 23:38:02 +0200 Subject: [PATCH] fix: pg_isready healthcheck must specify database name Without -d, pg_isready connects to database matching the username ('cameleer'), which doesn't exist. Specify $POSTGRES_DB explicitly. Co-Authored-By: Claude Opus 4.6 (1M context) --- docker-compose.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index dab20b5..daa827c 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -23,7 +23,7 @@ services: - pgdata:/var/lib/postgresql/data - ./docker/init-databases.sh:/docker-entrypoint-initdb.d/init-databases.sh:ro healthcheck: - test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER:-cameleer}"] + test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER:-cameleer} -d ${POSTGRES_DB:-cameleer_saas}"] interval: 5s timeout: 5s retries: 5