🚀 feat: Implement health check for backend service in Dockerfile

This commit is contained in:
Ruben Talstra 2025-03-03 20:56:07 +01:00
parent be060cbfb7
commit cc8e4dbb77
No known key found for this signature in database
GPG key ID: 2A5A7174A60F3BEA
2 changed files with 7 additions and 7 deletions

View file

@ -27,12 +27,6 @@ services:
- ./images:/app/client/public/images
- ./uploads:/app/uploads
- ./logs:/app/api/logs
healthcheck:
test: ["CMD", "curl", "-f", "http://api:${PORT}/health || exit 1"]
interval: 30s
timeout: 10s
retries: 5
start_period: 10s
mongodb:
container_name: chat-mongodb