Debian Codegraph @

tests/integration/deps/docker-compose-conditional-healthy.yaml

raw symbols SCIP
1 version: "3.7"
2 services:
3 web:
4 image: nopush/podman-compose-test
5 command: ["dumb-init", "/bin/busybox", "httpd", "-f", "-h", "/etc/", "-p", "8000"]
6 tmpfs:
7 - /run
8 - /tmp
9 healthcheck:
10 test: ["CMD", "wget", "-qO-", "http://localhost:8000/hosts"]
11 start_period: 10s # initialization time for containers that need time to bootstrap
12 interval: 10s # Time between health checks
13 timeout: 5s # Time to wait for a response
14 retries: 3 # Number of consecutive failures before marking as unhealthy
15 sleep:
16 image: nopush/podman-compose-test
17 command: ["dumb-init", "/bin/busybox", "sh", "-c", "sleep 3600"]
18 depends_on:
19 web:
20 condition: service_healthy
21 tmpfs:
22 - /run
23 - /tmp