Here's how to fix the "Docker port is already allocated error" It has been driving me nuts so here is a fix at the project level.
This also shows how to do this for the Laravel Tests container in the Laravel Sail aspects of the project.
I hope you find this useful.
Chapters
0:00 Intro
0:34 Fix for Docker Port already allocated - edit docker-compose.yml
2:50 Fix for Laravel Sail Docker Port already allocated - add APP_PORT to .env file
4:15 Changing port for Vite Port 5173 in docker-compose.yml
==========================
Stack Overflow post shown:
Laravel Sail how to change local dev domain
stackoverflow.com/questions/66171148/laravel-sail-…
Thanks to lecturers and course mates for helping with this fix. Would never have got there otherwise.
Remember - it's never too late!
Cheers,
Steve
コメント