What
Add a healthcheck to both services in compose.yaml: the app (HTTP 200 on / or /api/v1/components) and the scheduler (e.g. the file the scheduler touches, or php artisan schedule:list). Docker then shows healthy/unhealthy instead of just running, and docker compose up --wait works.
Where
compose.yaml, maybe docker/entrypoint.sh. Keep the two-container layout.
Done when
docker compose ps shows (healthy) for both after start; README Docker section mentions it in one line.
What
Add a
healthcheckto both services incompose.yaml: the app (HTTP 200 on/or/api/v1/components) and the scheduler (e.g. the file the scheduler touches, orphp artisan schedule:list). Docker then showshealthy/unhealthyinstead of justrunning, anddocker compose up --waitworks.Where
compose.yaml, maybedocker/entrypoint.sh. Keep the two-container layout.Done when
docker compose psshows(healthy)for both after start; README Docker section mentions it in one line.