From 1937f09864b70982a3150402eff216cb4045a562 Mon Sep 17 00:00:00 2001 From: "jonah.fu" Date: Sat, 6 Dec 2025 19:48:56 +0800 Subject: [PATCH] =?UTF-8?q?fix(compose):=20=E4=BC=98=E5=8C=96MySQL?= =?UTF-8?q?=E6=9C=8D=E5=8A=A1=E5=81=A5=E5=BA=B7=E6=A3=80=E6=9F=A5=E9=85=8D?= =?UTF-8?q?=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 增加健康检查间隔为10秒 - 设置健康检查超时时间为20秒 - 配置重试次数为10次 - 添加启动宽限期为30秒 --- compose.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/compose.yaml b/compose.yaml index a6a99b7..10a3246 100644 --- a/compose.yaml +++ b/compose.yaml @@ -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: