feat: create health check

This commit is contained in:
2025-12-25 18:34:39 +01:00
parent 07c6b89525
commit 2522f3536d

View File

@@ -25,6 +25,11 @@ services:
APP_BASE_URL: ${APP_BASE_URL:-http://127.0.0.1:8080}
ports:
- "8080:8080"
healthcheck:
test: ["CMD-SHELL", "curl -fsS http://localhost:${SERVER_PORT:-8080}/health | grep -q '\"status\":\"healthy\"'"]
interval: 10s
timeout: 5s
retries: 5
restart: always
networks:
- goyco