docker compose up --wait --wait-timeout 60

Category: Docker

docker compose up --wait --wait-timeout 60

Start services and wait for readiness

--wait blocks until every service reports healthy or its healthcheck passes, then returns. --wait-timeout caps that wait at 60 seconds before failing. Essential in scripts that must not proceed before the stack is up.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.