diff --git a/backend/Dockerfile b/backend/Dockerfile index b3ddf82..5cbffce 100644 --- a/backend/Dockerfile +++ b/backend/Dockerfile @@ -41,7 +41,7 @@ EXPOSE 8000 # 健康检查 HEALTHCHECK --interval=30s --timeout=3s --start-period=40s --retries=3 \ - CMD curl -f http://localhost:8000/api/health || exit 1 + CMD curl -f http://localhost:8000/api/system/health || exit 1 # 启动应用 ENTRYPOINT ["java", "-jar", "app.jar"] diff --git a/docker/start.sh b/docker/start.sh index 8bffa6b..b828494 100755 --- a/docker/start.sh +++ b/docker/start.sh @@ -60,7 +60,7 @@ BACKEND_PID=$! # 等待后端服务启动 echo "等待后端服务启动..." for i in {1..60}; do - if curl -f http://localhost:8000/api/health > /dev/null 2>&1; then + if curl -f http://localhost:8000/api/system/health > /dev/null 2>&1; then echo "后端服务已启动" break fi