fix(docker-compose.2.0): 修复healthcheck路径为/api/v1/health并增加start_period到60s
docker-compose.yml里的healthcheck配置会覆盖Dockerfile里的配置 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
1b425e09c9
commit
36d7b7ebfe
|
|
@ -45,11 +45,11 @@ services:
|
|||
ports:
|
||||
- "3020:3020"
|
||||
healthcheck:
|
||||
test: ["CMD", "curl", "-f", "http://localhost:3020/health"]
|
||||
test: ["CMD", "curl", "-f", "http://localhost:3020/api/v1/health"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
start_period: 10s
|
||||
start_period: 60s
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
- rwa-network
|
||||
|
|
@ -75,11 +75,11 @@ services:
|
|||
ports:
|
||||
- "3021:3021"
|
||||
healthcheck:
|
||||
test: ["CMD", "curl", "-f", "http://localhost:3021/health"]
|
||||
test: ["CMD", "curl", "-f", "http://localhost:3021/api/v1/health"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
start_period: 10s
|
||||
start_period: 60s
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
- rwa-network
|
||||
|
|
@ -107,11 +107,11 @@ services:
|
|||
ports:
|
||||
- "3022:3022"
|
||||
healthcheck:
|
||||
test: ["CMD", "curl", "-f", "http://localhost:3022/health"]
|
||||
test: ["CMD", "curl", "-f", "http://localhost:3022/api/v1/health"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
start_period: 10s
|
||||
start_period: 60s
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
- rwa-network
|
||||
|
|
@ -149,11 +149,11 @@ services:
|
|||
ports:
|
||||
- "3023:3023"
|
||||
healthcheck:
|
||||
test: ["CMD", "curl", "-f", "http://localhost:3023/health"]
|
||||
test: ["CMD", "curl", "-f", "http://localhost:3023/api/v1/health"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
start_period: 10s
|
||||
start_period: 60s
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
- rwa-network
|
||||
|
|
@ -194,7 +194,7 @@ services:
|
|||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
start_period: 10s
|
||||
start_period: 60s
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
- rwa-network
|
||||
|
|
|
|||
Loading…
Reference in New Issue