Add healthcheck for shlink service

This commit is contained in:
Julien Calixte
2026-03-19 22:50:45 +01:00
parent 11cce29775
commit 971f22f395

View File

@@ -13,6 +13,12 @@ services:
DB_PASSWORD: ${DB_PASSWORD}
INITIAL_API_KEY: ${INITIAL_API_KEY}
TIMEZONE: ${TIMEZONE:-UTC}
healthcheck:
test: ["CMD-SHELL", "curl -sf http://localhost:8080/rest/health || exit 1"]
interval: 10s
timeout: 5s
retries: 5
start_period: 30s
depends_on:
db:
condition: service_healthy