compose
compose copied to clipboard
Add compose up `--no-start-exited` option
Description
Problem
services:
db:
...
migration:
depends_on:
db:
condition: service_healthy
...
app:
depends_on:
migration:
condition: service_completed_successfully
...
Migration container started every time docker compose up
fired. Even though there are no changes at all.
Ideally migration container started only when it created or recreated.
Possible interfaces
- Add new option
--no-restart
- Add new option
--no-start-exited
- Generalize existing option
--no-start string
where string = {{.State.Status}} - ...