feat: create health check
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user