From 2297be1a0426c9839f604ae9d3b06be65cc3581f Mon Sep 17 00:00:00 2001 From: Developer Date: Tue, 2 Dec 2025 10:13:34 -0800 Subject: [PATCH] =?UTF-8?q?fix(docker-compose):=20=E7=BB=9F=E4=B8=80=20bac?= =?UTF-8?q?kup-service=20=E5=92=8C=20mpc-service=20=E5=81=A5=E5=BA=B7?= =?UTF-8?q?=E6=A3=80=E6=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit backup-service: - docker-compose.yml: curl -> wget (与 Dockerfile 一致) mpc-service: - docker-compose.yml: curl -> node HTTP (与 Dockerfile 一致) 修复 docker-compose healthcheck 覆盖 Dockerfile HEALTHCHECK 导致的不一致 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- backend/services/docker-compose.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/services/docker-compose.yml b/backend/services/docker-compose.yml index cd170e6c..7d82a27a 100644 --- a/backend/services/docker-compose.yml +++ b/backend/services/docker-compose.yml @@ -198,7 +198,7 @@ services: postgres: condition: service_healthy healthcheck: - test: ["CMD", "curl", "-f", "http://localhost:3002/health"] + test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:3002/health"] interval: 30s timeout: 3s retries: 3 @@ -345,7 +345,7 @@ services: kafka: condition: service_started healthcheck: - test: ["CMD", "curl", "-f", "http://localhost:3006/api/v1/health"] + test: ["CMD", "node", "-e", "require('http').get('http://localhost:3006/api/v1/health', (r) => {process.exit(r.statusCode === 200 ? 0 : 1)})"] interval: 30s timeout: 3s retries: 3