fix(dockerfiles): 修复2.0服务健康检查路径
- 修正健康检查URL从 /health 到 /api/v1/health(因为设置了全局前缀) - 增加 start-period 从 10s 到 60s,给服务更多启动时间 受影响服务: - contribution-service - mining-service - mining-admin-service - trading-service - mining-wallet-service Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
f26a796244
commit
673e5ff772
|
|
@ -44,7 +44,7 @@ ENV TZ=Asia/Shanghai
|
|||
|
||||
EXPOSE 3020
|
||||
|
||||
HEALTHCHECK --interval=30s --timeout=10s --start-period=10s --retries=3 \
|
||||
CMD curl -f http://localhost:3020/health || exit 1
|
||||
HEALTHCHECK --interval=30s --timeout=10s --start-period=60s --retries=3 \
|
||||
CMD curl -f http://localhost:3020/api/v1/health || exit 1
|
||||
|
||||
CMD ["/app/start.sh"]
|
||||
|
|
|
|||
|
|
@ -63,8 +63,8 @@ ENV TZ=Asia/Shanghai
|
|||
EXPOSE 3023
|
||||
|
||||
# 健康检查
|
||||
HEALTHCHECK --interval=30s --timeout=10s --start-period=10s --retries=3 \
|
||||
CMD curl -f http://localhost:3023/health || exit 1
|
||||
HEALTHCHECK --interval=30s --timeout=10s --start-period=60s --retries=3 \
|
||||
CMD curl -f http://localhost:3023/api/v1/health || exit 1
|
||||
|
||||
# 启动应用
|
||||
CMD ["/app/start.sh"]
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@ ENV TZ=Asia/Shanghai
|
|||
|
||||
EXPOSE 3021
|
||||
|
||||
HEALTHCHECK --interval=30s --timeout=10s --start-period=10s --retries=3 \
|
||||
CMD curl -f http://localhost:3021/health || exit 1
|
||||
HEALTHCHECK --interval=30s --timeout=10s --start-period=60s --retries=3 \
|
||||
CMD curl -f http://localhost:3021/api/v1/health || exit 1
|
||||
|
||||
CMD ["/app/start.sh"]
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@ ENV TZ=Asia/Shanghai
|
|||
|
||||
EXPOSE 3025
|
||||
|
||||
HEALTHCHECK --interval=30s --timeout=10s --start-period=10s --retries=3 \
|
||||
CMD curl -f http://localhost:3025/health || exit 1
|
||||
HEALTHCHECK --interval=30s --timeout=10s --start-period=60s --retries=3 \
|
||||
CMD curl -f http://localhost:3025/api/v1/health || exit 1
|
||||
|
||||
CMD ["/app/start.sh"]
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@ ENV TZ=Asia/Shanghai
|
|||
|
||||
EXPOSE 3022
|
||||
|
||||
HEALTHCHECK --interval=30s --timeout=10s --start-period=10s --retries=3 \
|
||||
CMD curl -f http://localhost:3022/health || exit 1
|
||||
HEALTHCHECK --interval=30s --timeout=10s --start-period=60s --retries=3 \
|
||||
CMD curl -f http://localhost:3022/api/v1/health || exit 1
|
||||
|
||||
CMD ["/app/start.sh"]
|
||||
|
|
|
|||
Loading…
Reference in New Issue