fix(docker-compose): 统一 backup-service 和 mpc-service 健康检查

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 <noreply@anthropic.com>
This commit is contained in:
Developer 2025-12-02 10:13:34 -08:00
parent 9088b1a9ee
commit 2297be1a04
1 changed files with 2 additions and 2 deletions

View File

@ -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