From 89415ac453ff9d2e2025ecd0f61dc95d85f741c0 Mon Sep 17 00:00:00 2001 From: J2M3L2 <10914840+J2M3L2@users.noreply.github.com> Date: Fri, 25 Jul 2025 09:05:47 +0800 Subject: [PATCH] fix: improve PostgreSQL healthcheck cmd to avoid fatal log errors (#22749) (#22917) --- docker/docker-compose.middleware.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/docker-compose.middleware.yaml b/docker/docker-compose.middleware.yaml index 3408fef0c2..9f7cc72586 100644 --- a/docker/docker-compose.middleware.yaml +++ b/docker/docker-compose.middleware.yaml @@ -20,7 +20,7 @@ services: ports: - "${EXPOSE_POSTGRES_PORT:-5432}:5432" healthcheck: - test: [ "CMD", "pg_isready" ] + test: [ 'CMD', 'pg_isready', '-h', 'db', '-U', '${PGUSER:-postgres}', '-d', '${POSTGRES_DB:-dify}' ] interval: 1s timeout: 3s retries: 30