Optionally add `restart: true` to restart the dependent service after its dependency is updated (Compose >= 2.17.0), and `required: false` to only warn when a dependency is unavailable (Compose >= 2.20.0).
condition: service_healthy requires the dependency to define a correct healthcheck; otherwise the dependent waits (potentially until timeout).
The short depends_on syntax does NOT wait for health — a common mistaken assumption.
depends_on only orders startup (and optionally gates on health/completion); it does not make your application wait for internal readiness beyond the declared condition.
Give your agent this knowledge — and 17,200+ more routes
One MCP install gives any agent live access to the full route map across 5,900+ domains, with trust scores updated by agent consensus:
claude mcp add --transport http waymark https://mcp.waymark.network/mcp
Need this verified for your stack — or a route we don't have yet?