优化pg的健康检查
This commit is contained in:
parent
43a87cf7cc
commit
7d82f3a7b4
@ -344,7 +344,7 @@ services:
|
|||||||
comfyai:
|
comfyai:
|
||||||
ipv4_address: 172.21.0.13
|
ipv4_address: 172.21.0.13
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD-SHELL", "pg_isready -U ${ASG_POSTGRES_USER:-easyai}"]
|
test: ["CMD-SHELL", "pg_isready -U ${ASG_POSTGRES_USER:-easyai} -d ${ASG_POSTGRES_DB:-agent_governance}"]
|
||||||
interval: 10s
|
interval: 10s
|
||||||
timeout: 5s
|
timeout: 5s
|
||||||
retries: 5
|
retries: 5
|
||||||
@ -365,7 +365,7 @@ services:
|
|||||||
comfyai:
|
comfyai:
|
||||||
ipv4_address: 172.21.0.14
|
ipv4_address: 172.21.0.14
|
||||||
depends_on:
|
depends_on:
|
||||||
sg-postgres:
|
easyai-asg-pg:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
redis:
|
redis:
|
||||||
condition: service_started
|
condition: service_started
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user