feat: add healthcheck configuration for backend service in docker-compose

This commit is contained in:
Daniel Volz
2025-12-22 11:30:22 +01:00
parent 57da1114ad
commit aca955972a
+6
View File
@@ -11,6 +11,12 @@ services:
- .env
ports:
- "3000:3000"
healthcheck:
test: ["CMD-SHELL", "node -e \"require('http').get('http://localhost:3000/health', (r) => process.exit(r.statusCode === 200 ? 0 : 1)).on('error', () => process.exit(1))\""]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
frontend-dev:
image: node:25-slim