From e6d99ff449775e28a336e3cec5fbb6dcbb508af4 Mon Sep 17 00:00:00 2001 From: Philipp Rothmann Date: Thu, 16 Feb 2023 10:28:55 +0100 Subject: [PATCH] feat: add healthcheck for api --- compose.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/compose.yml b/compose.yml index 34051a4..d28e43c 100644 --- a/compose.yml +++ b/compose.yml @@ -27,6 +27,12 @@ services: - "traefik.http.routers.${STACK_NAME}_api.rule=Host(`${DOMAIN}`) && PathPrefix(`/api/v1`, `/dav/`, `/.well-known/`)" - "traefik.http.routers.${STACK_NAME}_api.entrypoints=web-secure" - "traefik.http.routers.${STACK_NAME}_api.tls.certresolver=${LETS_ENCRYPT_ENV}" + healthcheck: + test: [ "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:3456/health"] + interval: 30s + timeout: 10s + retries: 10 + start_period: 1m app: image: vikunja/frontend:0.20.1