From e3e08d0b1d902ab0cda68c51ce56f3c893fa4652 Mon Sep 17 00:00:00 2001 From: Simon Date: Mon, 25 Nov 2024 17:46:59 +0100 Subject: [PATCH] add healthcheck --- compose.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/compose.yml b/compose.yml index 217b281..bbdeb89 100644 --- a/compose.yml +++ b/compose.yml @@ -26,12 +26,12 @@ services: - "traefik.http.routers.${STACK_NAME}.entrypoints=web-secure" - "traefik.http.routers.${STACK_NAME}.tls.certresolver=${LETS_ENCRYPT_ENV}" - "coop-cloud.${STACK_NAME}.version=1.1.0+2024.10.0" - # healthcheck: - # test: ["CMD", "curl", "-f", "http://localhost"] - # interval: 30s - # timeout: 10s - # retries: 10 - # start_period: 1m + healthcheck: + test: ["CMD", "curl", "-f", "http://localhost/healthcheck"] + interval: 30s + timeout: 10s + retries: 10 + start_period: 1m db: image: postgres:12