forked from Shared/esg
Add health check and retry logic and circuit breaker
This commit is contained in:
@@ -8,6 +8,12 @@ services:
|
||||
- "127.0.0.1:3000:3000"
|
||||
env_file:
|
||||
- .production.env
|
||||
healthcheck:
|
||||
test: ["CMD", "wget", "-qO-", "http://127.0.0.1:3000/health/ready"]
|
||||
interval: 15s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
start_period: 20s
|
||||
depends_on:
|
||||
mongodb:
|
||||
condition: service_healthy
|
||||
|
||||
Reference in New Issue
Block a user