fix(compose): 优化MySQL服务健康检查配置
- 增加健康检查间隔为10秒 - 设置健康检查超时时间为20秒 - 配置重试次数为10次 - 添加启动宽限期为30秒
This commit is contained in:
@@ -16,8 +16,10 @@ services:
|
|||||||
- comcms_network
|
- comcms_network
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: [ "CMD", "mysqladmin", "ping", "-h", "localhost" ]
|
test: [ "CMD", "mysqladmin", "ping", "-h", "localhost" ]
|
||||||
|
interval: 10s
|
||||||
timeout: 20s
|
timeout: 20s
|
||||||
retries: 10
|
retries: 10
|
||||||
|
start_period: 30s
|
||||||
|
|
||||||
# Redis 缓存服务
|
# Redis 缓存服务
|
||||||
redis:
|
redis:
|
||||||
|
|||||||
Reference in New Issue
Block a user