...
 
Commits (2)
version: '3.6'
version: "3.6"
services:
# meh:
# image: alpine
# command: sh -c 'echo yo dude; tail -f /dev/null'
meh:
image: alpine
command: sh -c 'echo yo dude; tail -f /dev/null'
restart: "no"
app:
image: alpine
command: sh -c 'sleep 3; touch /healthy; tail -f /dev/null'
......@@ -10,13 +11,13 @@ services:
"x": "1"
"y": "3"
healthcheck:
test: 'test -f /healthy'
test: "test -f /healthy"
retries: 5
interval: 1s
timeout: 1s
deploy:
update_config:
order: start-first
parallelism: 2
failure_action: rollback
parallelism: 0
# failure_action: rollback
replicas: 3
This diff is collapsed.