fix: start the plugin daemon after the database has become healthy (#17928)

This commit is contained in:
kurokobo 2025-04-13 11:21:56 +09:00 committed by GitHub
parent 5d72003ebb
commit bc57fa0619
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 8 additions and 6 deletions

View File

@ -90,10 +90,10 @@ services:
volumes:
- ./volumes/db/data:/var/lib/postgresql/data
healthcheck:
test: [ 'CMD', 'pg_isready' ]
test: [ 'CMD', 'pg_isready', '-h', 'db', '-U', '${PGUSER:-postgres}', '-d', '${POSTGRES_DB:-dify}' ]
interval: 1s
timeout: 3s
retries: 30
retries: 60
# The redis cache.
redis:
@ -175,7 +175,8 @@ services:
volumes:
- ./volumes/plugin_daemon:/app/storage
depends_on:
- db
db:
condition: service_healthy
# ssrf_proxy server
# for more information, please refer to

View File

@ -558,10 +558,10 @@ services:
volumes:
- ./volumes/db/data:/var/lib/postgresql/data
healthcheck:
test: [ 'CMD', 'pg_isready' ]
test: [ 'CMD', 'pg_isready', '-h', 'db', '-U', '${PGUSER:-postgres}', '-d', '${POSTGRES_DB:-dify}' ]
interval: 1s
timeout: 3s
retries: 30
retries: 60
# The redis cache.
redis:
@ -643,7 +643,8 @@ services:
volumes:
- ./volumes/plugin_daemon:/app/storage
depends_on:
- db
db:
condition: service_healthy
# ssrf_proxy server
# for more information, please refer to