优化 MySQL 健康检查配置
Some checks failed
continuous-integration/drone/push Build is failing

- 增加 MySQL 健康检查重试次数和启动等待时间
- 添加 docker compose --wait 参数确保服务就绪
- 增加部署后等待时间
This commit is contained in:
kuzma
2026-01-31 22:25:10 +08:00
parent 365829f495
commit 704670df6d
3 changed files with 10 additions and 10 deletions

View File

@@ -115,10 +115,10 @@ services:
- pricing_network_prod
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "localhost", "-u", "root", "-p${MYSQL_ROOT_PASSWORD}"]
interval: 30s
interval: 10s
timeout: 10s
retries: 3
start_period: 60s
retries: 10
start_period: 120s
logging:
driver: "json-file"
options: