diff --git a/backend/services/contribution-service/Dockerfile b/backend/services/contribution-service/Dockerfile index 7e7887bd..b4b0ddb0 100644 --- a/backend/services/contribution-service/Dockerfile +++ b/backend/services/contribution-service/Dockerfile @@ -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"] diff --git a/backend/services/mining-admin-service/Dockerfile b/backend/services/mining-admin-service/Dockerfile index 7ffc3f37..6bf1cc6c 100644 --- a/backend/services/mining-admin-service/Dockerfile +++ b/backend/services/mining-admin-service/Dockerfile @@ -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"] diff --git a/backend/services/mining-service/Dockerfile b/backend/services/mining-service/Dockerfile index f10c10f3..a12ee2b0 100644 --- a/backend/services/mining-service/Dockerfile +++ b/backend/services/mining-service/Dockerfile @@ -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"] diff --git a/backend/services/mining-wallet-service/Dockerfile b/backend/services/mining-wallet-service/Dockerfile index b1ff1af3..224d2d71 100644 --- a/backend/services/mining-wallet-service/Dockerfile +++ b/backend/services/mining-wallet-service/Dockerfile @@ -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"] diff --git a/backend/services/trading-service/Dockerfile b/backend/services/trading-service/Dockerfile index fd571714..8b9a6303 100644 --- a/backend/services/trading-service/Dockerfile +++ b/backend/services/trading-service/Dockerfile @@ -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"]