Skip to content

Instantly share code, notes, and snippets.

@ndeloof
Last active May 16, 2025 15:13
Show Gist options
  • Save ndeloof/f2f33ace1aac7b950ea1a1b23ec28fa2 to your computer and use it in GitHub Desktop.
Save ndeloof/f2f33ace1aac7b950ea1a1b23ec28fa2 to your computer and use it in GitHub Desktop.
services:
app:
image: app-without-curl-inside
# app is running a webserver on 8080
app-health:
image: curl
command: sleep infinity
network_mode: "service:app"
healthcheck:
test: curl localhost:8080/heath # actually testing pp
foo:
depends_on:
- service: app-health
condition: service_healthy
@ndeloof
Copy link
Author

ndeloof commented May 16, 2025

app-health need to be running, so the sleep infinity command

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment