fix: 更新健康检查URL路径
- 将docker-compose.yml和docker-compose.prod.yml中的健康检查URL从`/health`更新为`/api/v1/health` - 确保前端和后端服务的健康检查一致性 此更改确保服务健康检查指向正确的API路径。
This commit is contained in:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user