From cab36fccf1d72b8cc032ccb240aebbd4cdcd8633 Mon Sep 17 00:00:00 2001 From: hailin Date: Sun, 11 Jan 2026 22:56:26 -0800 Subject: [PATCH] =?UTF-8?q?fix(docker):=20=E4=BF=AE=E5=A4=8D=20contributio?= =?UTF-8?q?n-service=20=E5=92=8C=20mining-admin-service=20Dockerfile=20hea?= =?UTF-8?q?lthcheck=20=E8=B7=AF=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 将 healthcheck 路径从 /api/v1/health 改为 /api/v2/health, 与 main.ts 中的 API 前缀保持一致。 Co-Authored-By: Claude Opus 4.5 --- backend/services/contribution-service/Dockerfile | 2 +- backend/services/mining-admin-service/Dockerfile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/services/contribution-service/Dockerfile b/backend/services/contribution-service/Dockerfile index b4b0ddb0..b86e75f0 100644 --- a/backend/services/contribution-service/Dockerfile +++ b/backend/services/contribution-service/Dockerfile @@ -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"] diff --git a/backend/services/mining-admin-service/Dockerfile b/backend/services/mining-admin-service/Dockerfile index 6bf1cc6c..81971c08 100644 --- a/backend/services/mining-admin-service/Dockerfile +++ b/backend/services/mining-admin-service/Dockerfile @@ -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"]