This is a container setup for any version of Laravel vanilla, Laravel with Inertia and Livewire.
- docker compose up -d
- docker-compose exec app bash
- npm install
- Laravel deployment commands - https://laravel.com/docs/10.x/deployment
- npm run build
- Go to localhost:8000
- Done!
NodeJS can run on local machine for development.
- docker compose up -d
- docker-compose exec app bash
- Laravel deployment commands - https://laravel.com/docs/10.x/deployment
- exit
- npm run dev
- Go to localhost:8000
- Done!
ERR_CONNECTION_REFUSED
Solution: delete public/hot and rebuild the application