add healthcheck

This commit is contained in:
Moritz 2023-09-08 01:17:01 +02:00
parent 75a93c5456
commit bd8398e7dd
1 changed files with 7 additions and 0 deletions

View File

@ -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: