add healthcheck
This commit is contained in:
parent
75a93c5456
commit
bd8398e7dd
@ -16,6 +16,7 @@ services:
|
|||||||
deploy:
|
deploy:
|
||||||
labels:
|
labels:
|
||||||
- coop-cloud.${STACK_NAME}.version=0.1.0+latest
|
- coop-cloud.${STACK_NAME}.version=0.1.0+latest
|
||||||
|
- coop-cloud.${STACK_NAME}.timeout=${TIMEOUT:-120}
|
||||||
configs:
|
configs:
|
||||||
- source: entrypoint
|
- source: entrypoint
|
||||||
target: /entrypoint.sh
|
target: /entrypoint.sh
|
||||||
@ -24,6 +25,12 @@ services:
|
|||||||
target: /usr/bin/backup
|
target: /usr/bin/backup
|
||||||
mode: 0555
|
mode: 0555
|
||||||
entrypoint: ['/entrypoint.sh']
|
entrypoint: ['/entrypoint.sh']
|
||||||
|
healthcheck:
|
||||||
|
test: "pgrep crond"
|
||||||
|
interval: 30s
|
||||||
|
timeout: 10s
|
||||||
|
retries: 10
|
||||||
|
start_period: 5m
|
||||||
|
|
||||||
secrets:
|
secrets:
|
||||||
restic_password:
|
restic_password:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user