fix: 更新健康检查URL路径
Some checks failed
部署后端服务 / 🚀 构建并部署 (push) Failing after 7m56s
部署前端网站 / 🧪 测试和构建 (push) Successful in 5m26s
部署前端网站 / 🚀 部署到生产环境 (push) Failing after 3m43s

- 将docker-compose.yml和docker-compose.prod.yml中的健康检查URL从`/health`更新为`/api/v1/health`
- 确保前端和后端服务的健康检查一致性

此更改确保服务健康检查指向正确的API路径。
This commit is contained in:
xujiang
2025-07-16 14:23:53 +08:00
parent 25a60c48c9
commit c18973e528
3 changed files with 4 additions and 4 deletions

View File

@ -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