From 621d76646ee40b99bb30722a633e7b7090ca964e Mon Sep 17 00:00:00 2001 From: Developer Date: Wed, 3 Dec 2025 17:55:49 -0800 Subject: [PATCH] =?UTF-8?q?fix(mpc-system):=20=E4=BF=AE=E5=A4=8D=20docker-?= =?UTF-8?q?compose=20=E5=81=A5=E5=BA=B7=E6=A3=80=E6=9F=A5=E4=B8=BA=20curl?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 统一所有服务的健康检查使用 curl -sf 替代 wget --spider 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- backend/mpc-system/docker-compose.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/backend/mpc-system/docker-compose.yml b/backend/mpc-system/docker-compose.yml index 922a2cd3..78ef255d 100644 --- a/backend/mpc-system/docker-compose.yml +++ b/backend/mpc-system/docker-compose.yml @@ -113,7 +113,7 @@ services: rabbitmq: condition: service_healthy healthcheck: - test: ["CMD", "wget", "-q", "--spider", "http://localhost:8080/health"] + test: ["CMD", "curl", "-sf", "http://localhost:8080/health"] interval: 30s timeout: 10s retries: 3 @@ -148,7 +148,7 @@ services: rabbitmq: condition: service_healthy healthcheck: - test: ["CMD", "wget", "-q", "--spider", "http://localhost:8080/health"] + test: ["CMD", "curl", "-sf", "http://localhost:8080/health"] interval: 30s timeout: 10s retries: 3 @@ -190,7 +190,7 @@ services: message-router: condition: service_healthy healthcheck: - test: ["CMD", "wget", "-q", "--spider", "http://localhost:8080/health"] + test: ["CMD", "curl", "-sf", "http://localhost:8080/health"] interval: 30s timeout: 10s retries: 3 @@ -227,7 +227,7 @@ services: message-router: condition: service_healthy healthcheck: - test: ["CMD", "wget", "-q", "--spider", "http://localhost:8080/health"] + test: ["CMD", "curl", "-sf", "http://localhost:8080/health"] interval: 30s timeout: 10s retries: 3 @@ -264,7 +264,7 @@ services: message-router: condition: service_healthy healthcheck: - test: ["CMD", "wget", "-q", "--spider", "http://localhost:8080/health"] + test: ["CMD", "curl", "-sf", "http://localhost:8080/health"] interval: 30s timeout: 10s retries: 3 @@ -312,7 +312,7 @@ services: session-coordinator: condition: service_healthy healthcheck: - test: ["CMD", "wget", "-q", "--spider", "http://localhost:8080/health"] + test: ["CMD", "curl", "-sf", "http://localhost:8080/health"] interval: 30s timeout: 10s retries: 3