mirror of
https://github.com/docker/compose.git
synced 2026-11-17 13:45:39 +00:00
The wiring of --wait-timeout into the plan's dependency waits was only covered by executor tests that set the timeout by hand, and by an e2e without depends_on. The scenario has a dependency that never gets healthy and checks that up -d --wait-timeout fails with the dependency timeout message (without the raw deadline error) and leaves the dependent service created but not started. Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
15 lines
261 B
YAML
15 lines
261 B
YAML
services:
|
|
db:
|
|
image: alpine
|
|
command: sleep infinity
|
|
healthcheck:
|
|
test: ["CMD", "false"]
|
|
interval: 1s
|
|
retries: 100
|
|
|
|
web:
|
|
image: alpine
|
|
command: sleep infinity
|
|
depends_on:
|
|
db:
|
|
condition: service_healthy
|