Docker
docker-compose.yml contains the entire stack to run everything from the app to Horizon and Pulse. Make sure you have something lightweight like OrbStack (for macOS) installed to be able to run Docker.
Getting started
To start from scratch:
composer run-script docker:resetStarting
Start the services (in the background):
docker compose up -dStart all containers, including optional ones:
docker compose --profile default --profile optional up -dRebuild, start, and wait for containers to be healthy:
docker compose up -d --build --waitRebuild without cache and start:
docker compose build --no-cache && docker compose up -dRebuild (with latest remote changes) without cache and start:
docker compose build --pull --no-cache && docker compose up -dStopping
Stop the running services:
docker compose stopStop the running services and destroy the containers (!):
docker compose downLogs
View the logs for all services:
docker compose logsView the logs for a specific service (e.g., php):
docker compose logs phpContainers
Run a command in a running container:
docker compose exec php sh
docker compose exec php bashSpin up container, run command, stop and remove container:
docker compose run --rm node npm ci && npm run buildStatus
Check the status of the services:
docker compose ps -aDeleting
Remove unused containers, networks, images, and volumes:
docker system prune