| 1 |
services: |
| 2 |
with-restart: |
| 3 |
image: nginx:alpine |
| 4 |
init: true |
| 5 |
command: tail -f /dev/null |
| 6 |
stop_signal: SIGTERM |
| 7 |
depends_on: |
| 8 |
nginx: {condition: service_healthy, restart: true} |
| 9 |
|
| 10 |
no-restart: |
| 11 |
image: nginx:alpine |
| 12 |
init: true |
| 13 |
command: tail -f /dev/null |
| 14 |
stop_signal: SIGTERM |
| 15 |
depends_on: |
| 16 |
nginx: { condition: service_healthy } |
| 17 |
|
| 18 |
nginx: |
| 19 |
image: nginx:alpine |
| 20 |
labels: |
| 21 |
TEST: ${LABEL:-test} |
| 22 |
stop_signal: SIGTERM |
| 23 |
healthcheck: |
| 24 |
test: "echo | nc -w 5 localhost:80" |
| 25 |
interval: 2s |
| 26 |
timeout: 1s |
| 27 |
retries: 10 |