From c18973e5289a21bf434d88a01d79a9e5bb1459ce Mon Sep 17 00:00:00 2001 From: xujiang Date: Wed, 16 Jul 2025 14:23:53 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=9B=B4=E6=96=B0=E5=81=A5=E5=BA=B7?= =?UTF-8?q?=E6=A3=80=E6=9F=A5URL=E8=B7=AF=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将docker-compose.yml和docker-compose.prod.yml中的健康检查URL从`/health`更新为`/api/v1/health` - 确保前端和后端服务的健康检查一致性 此更改确保服务健康检查指向正确的API路径。 --- backend/configs/docker/docker-compose.prod.yml | 2 +- docker-compose.yml | 4 ++-- frontend/docker-compose.yml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/backend/configs/docker/docker-compose.prod.yml b/backend/configs/docker/docker-compose.prod.yml index 305d45d..41f47a5 100644 --- a/backend/configs/docker/docker-compose.prod.yml +++ b/backend/configs/docker/docker-compose.prod.yml @@ -116,7 +116,7 @@ services: - api restart: unless-stopped healthcheck: - test: ["CMD", "curl", "-f", "http://localhost/health"] + test: ["CMD", "curl", "-f", "http://localhost/api/v1/health"] interval: 30s timeout: 10s retries: 3 diff --git a/docker-compose.yml b/docker-compose.yml index 63415f5..b5d34ae 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -149,7 +149,7 @@ services: - photography-network restart: unless-stopped healthcheck: - test: ["CMD", "curl", "-f", "http://localhost/health"] + test: ["CMD", "curl", "-f", "http://localhost/api/v1/health"] interval: 30s timeout: 10s retries: 3 @@ -178,7 +178,7 @@ services: - photography-network restart: unless-stopped healthcheck: - test: ["CMD", "curl", "-f", "http://localhost/health"] + test: ["CMD", "curl", "-f", "http://localhost/api/v1/health"] interval: 30s timeout: 10s retries: 3 diff --git a/frontend/docker-compose.yml b/frontend/docker-compose.yml index 145d4f9..446a5f7 100644 --- a/frontend/docker-compose.yml +++ b/frontend/docker-compose.yml @@ -34,7 +34,7 @@ services: - photography-network restart: unless-stopped healthcheck: - test: ["CMD", "curl", "-f", "http://localhost/health"] + test: ["CMD", "curl", "-f", "http://localhost/api/v1/health"] interval: 30s timeout: 10s retries: 3