fix(docker): 修复 contribution-service 和 mining-admin-service Dockerfile healthcheck 路径
将 healthcheck 路径从 /api/v1/health 改为 /api/v2/health, 与 main.ts 中的 API 前缀保持一致。 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
978dfcb2bf
commit
cab36fccf1
|
|
@ -45,6 +45,6 @@ ENV TZ=Asia/Shanghai
|
|||
EXPOSE 3020
|
||||
|
||||
HEALTHCHECK --interval=30s --timeout=10s --start-period=60s --retries=3 \
|
||||
CMD curl -f http://localhost:3020/api/v1/health || exit 1
|
||||
CMD curl -f http://localhost:3020/api/v2/health || exit 1
|
||||
|
||||
CMD ["/app/start.sh"]
|
||||
|
|
|
|||
|
|
@ -64,7 +64,7 @@ EXPOSE 3023
|
|||
|
||||
# 健康检查
|
||||
HEALTHCHECK --interval=30s --timeout=10s --start-period=60s --retries=3 \
|
||||
CMD curl -f http://localhost:3023/api/v1/health || exit 1
|
||||
CMD curl -f http://localhost:3023/api/v2/health || exit 1
|
||||
|
||||
# 启动应用
|
||||
CMD ["/app/start.sh"]
|
||||
|
|
|
|||
Loading…
Reference in New Issue