Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

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

J2M3L289415ac453ff
diff --git a/docker/docker-compose.middleware.yaml b/docker/docker-compose.middleware.yaml
index 3408fef0c23..9f7cc725861 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