优化pg的健康检查
This commit is contained in:
parent
43a87cf7cc
commit
7d82f3a7b4
@ -344,7 +344,7 @@ services:
|
||||
comfyai:
|
||||
ipv4_address: 172.21.0.13
|
||||
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
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
@ -365,7 +365,7 @@ services:
|
||||
comfyai:
|
||||
ipv4_address: 172.21.0.14
|
||||
depends_on:
|
||||
sg-postgres:
|
||||
easyai-asg-pg:
|
||||
condition: service_healthy
|
||||
redis:
|
||||
condition: service_started
|
||||
|
||||
Loading…
Reference in New Issue
Block a user