fix: improve PostgreSQL healthcheck cmd to avoid fatal log errors (#22749) (#22917)

This commit is contained in:
J2M3L2
2025-07-25 09:05:47 +08:00
committed by GitHub
parent 8bbed5aeea
commit 89415ac453

View File

@@ -20,7 +20,7 @@ services:
ports: ports:
- "${EXPOSE_POSTGRES_PORT:-5432}:5432" - "${EXPOSE_POSTGRES_PORT:-5432}:5432"
healthcheck: healthcheck:
test: [ "CMD", "pg_isready" ] test: [ 'CMD', 'pg_isready', '-h', 'db', '-U', '${PGUSER:-postgres}', '-d', '${POSTGRES_DB:-dify}' ]
interval: 1s interval: 1s
timeout: 3s timeout: 3s
retries: 30 retries: 30