| 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", "/bin/false"] |
| 11 | interval: 10s # Time between health checks |
| 12 | timeout: 1s # Time to wait for a response |
| 13 | retries: 1 # Number of consecutive failures before marking as unhealthy |
| 14 | sleep: |
| 15 | image: nopush/podman-compose-test |
| 16 | command: ["dumb-init", "/bin/busybox", "sh", "-c", "sleep 3600"] |
| 17 | depends_on: |
| 18 | web: |
| 19 | condition: service_healthy |
| 20 | tmpfs: |
| 21 | - /run |
| 22 | - /tmp |