Fix health check: use node instead of wget (not available in Alpine image)
Build and Push Docker Image / build (push) Successful in 8m41s
Details
Build and Push Docker Image / build (push) Successful in 8m41s
Details
Also increase start_period to 60s to allow time for migrations on first boot. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
afe8a58535
commit
e57c46afdc
|
|
@ -50,11 +50,11 @@ services:
|
|||
networks:
|
||||
- mopc-network
|
||||
healthcheck:
|
||||
test: ["CMD", "wget", "-q", "--spider", "http://localhost:7600/api/health"]
|
||||
test: ["CMD", "node", "-e", "fetch('http://localhost:7600/api/health').then(r=>{if(!r.ok)throw r;process.exit(0)}).catch(()=>process.exit(1))"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
start_period: 40s
|
||||
start_period: 60s
|
||||
|
||||
postgres:
|
||||
image: postgres:16-alpine
|
||||
|
|
|
|||
Loading…
Reference in New Issue