cp .env.example .env
docker compose run --no-deps --entrypoint='composer install' app
docker compose run --no-deps --entrypoint='php artisan key:generate' app
docker compose up -d
docker compose run --entrypoint='php artisan migrate:fresh' app
Or with seeds
docker compose run --entrypoint='php artisan migrate:fresh --seed' app
docker compose exec app npm run dev
docker compose up -d
docker compose exec app npm run dev