Add healthcheck for shlink service
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user