From bd8398e7dd7d46aa4cb7a5836c71b59ad2d46c5f Mon Sep 17 00:00:00 2001 From: Moritz Date: Fri, 8 Sep 2023 01:17:01 +0200 Subject: [PATCH] add healthcheck --- compose.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/compose.yml b/compose.yml index 2f1c682..cd573b0 100644 --- a/compose.yml +++ b/compose.yml @@ -16,6 +16,7 @@ services: deploy: labels: - coop-cloud.${STACK_NAME}.version=0.1.0+latest + - coop-cloud.${STACK_NAME}.timeout=${TIMEOUT:-120} configs: - source: entrypoint target: /entrypoint.sh @@ -24,6 +25,12 @@ services: target: /usr/bin/backup mode: 0555 entrypoint: ['/entrypoint.sh'] + healthcheck: + test: "pgrep crond" + interval: 30s + timeout: 10s + retries: 10 + start_period: 5m secrets: restic_password: