fix(leaderboard-service): 修复健康检查 API 路径
将 Dockerfile 和 docker-compose.yml 中的健康检查路径从 /api/health 修改为 /api/v1/health,与实际 API 路由保持一致 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
7d3483b565
commit
6b55b69d0d
|
|
@ -79,7 +79,7 @@ EXPOSE 3007
|
|||
|
||||
# Health check
|
||||
HEALTHCHECK --interval=30s --timeout=3s --start-period=60s --retries=3 \
|
||||
CMD curl -f http://localhost:3007/api/health || exit 1
|
||||
CMD curl -f http://localhost:3007/api/v1/health || exit 1
|
||||
|
||||
# Start service with migration
|
||||
CMD ["/app/start.sh"]
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@ services:
|
|||
command: >
|
||||
sh -c "npx prisma migrate deploy && node dist/main"
|
||||
healthcheck:
|
||||
test: ["CMD", "curl", "-f", "http://localhost:3007/api/health"]
|
||||
test: ["CMD", "curl", "-f", "http://localhost:3007/api/v1/health"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
|
|
|
|||
Loading…
Reference in New Issue