Interview Prep/Docker/Docker Compose

What is `docker compose up --wait` and `--abort-on-container-exit`?

AdvancedConceptDocker Compose
Answer

--wait implies -d and blocks until services are running/healthy, perfect for CI before running tests. --abort-on-container-exit stops everything when any container exits, with --exit-code-from test returning that service's exit code, a typical integration-test pattern.

docker compose up --abort-on-container-exit --exit-code-from tests
All Docker questions Roadmap: Docker & containers

More on Docker Compose