Add health check and retry logic and circuit breaker

This commit is contained in:
SepehrYahyaee
2026-09-28 17:01:53 +03:30
parent 22371f4a03
commit 03fa5e0f20
67 changed files with 3101 additions and 410 deletions
+6
View File
@@ -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