feat: add healthcheck configuration for backend service in docker-compose
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user