问题: - docker-compose.yml 的 healthcheck 覆盖了 Dockerfile 的 HEALTHCHECK - 使用 wget 而不是 curl - 健康检查 URL 不正确,导致所有服务显示 unhealthy 修复: 1. 统一使用 curl -f 代替 wget 2. 修正所有服务的健康检查 URL: - identity-service: /health → /api/v1/health - wallet-service: /health → /api/v1/health - backup-service: /health ✓ (保持不变) - planting-service: /health → /api/v1/health - referral-service: /health ✓ (保持不变) - reward-service: /health ✓ (保持不变) - mpc-service: /api/v1/health ✓ (已正确,改用 curl) - leaderboard-service: /health → /api/health - reporting-service: /health → /api/v1/health - authorization-service: /health ✓ (保持不变,改用 curl) 3. 统一 timeout 为 3s (原来是 10s) 4. admin-web: 优化 timeout 为 3s Docker HEALTHCHECK 机制: - 在容器内部执行 curl localhost:PORT/path - 不经过 Nginx 或外部网络 - 需要与服务实际端点匹配 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| .claude | ||
| admin-web | ||
| mobile-app | ||
| temp_backup | ||
| README.MD | ||