fix(compose): 优化MySQL服务健康检查配置

- 增加健康检查间隔为10秒
- 设置健康检查超时时间为20秒
- 配置重试次数为10次
- 添加启动宽限期为30秒
This commit is contained in:
jonah.fu
2025-12-06 19:48:56 +08:00
parent 7093fe22d1
commit 1937f09864
+2
View File
@@ -16,8 +16,10 @@ services:
- comcms_network
healthcheck:
test: [ "CMD", "mysqladmin", "ping", "-h", "localhost" ]
interval: 10s
timeout: 20s
retries: 10
start_period: 30s
# Redis 缓存服务
redis: