Add deploy-ready health checks
Deploy / deploy-dev (push) Skipped
Deploy / deploy-prod (push) Successful in 1m57s

This commit is contained in:
blaisadmin
2026-07-21 22:46:16 -04:00
parent 3ba6410972
commit ecad447d60
3 changed files with 33 additions and 1 deletions
+7
View File
@@ -95,6 +95,12 @@ services:
condition: service_healthy
redis:
condition: service_healthy
healthcheck:
test: ["CMD-SHELL", "node -e \"fetch('http://127.0.0.1:5000/api/health/ready').then(r => { if (!r.ok) process.exit(1) }).catch(() => process.exit(1))\""]
interval: 30s
timeout: 10s
retries: 3
start_period: 30s
ports:
- "5000:5000"
command: >
@@ -103,6 +109,7 @@ services:
volumes:
- ./backend:/app
- /app/node_modules
restart: unless-stopped
worker:
build: