From 971f22f395fa6b7969ac1c5f7914d5013f0cda78 Mon Sep 17 00:00:00 2001 From: Julien Calixte Date: Thu, 19 Mar 2026 22:50:45 +0100 Subject: [PATCH] Add healthcheck for shlink service --- docker-compose.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index 5d55e95..e30350b 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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