From c130cc0c0f47825dd16d81f92c334298647c8140 Mon Sep 17 00:00:00 2001 From: "Simon L." Date: Thu, 5 Dec 2024 16:30:47 +0100 Subject: [PATCH] adjust postgres healthcheck Signed-off-by: Simon L. --- Containers/postgresql/healthcheck.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Containers/postgresql/healthcheck.sh b/Containers/postgresql/healthcheck.sh index f72aeecf..9f303a3a 100644 --- a/Containers/postgresql/healthcheck.sh +++ b/Containers/postgresql/healthcheck.sh @@ -2,4 +2,6 @@ test -f "/mnt/data/backup-is-running" && exit 0 +psql -d "postgresql://oc_$POSTGRES_USER:$POSTGRES_PASSWORD@127.0.0.1:11000/$POSTGRES_DB" -c "select now()" && exit 0 + psql -d "postgresql://oc_$POSTGRES_USER:$POSTGRES_PASSWORD@127.0.0.1:5432/$POSTGRES_DB" -c "select now()" || exit 1