Laravel Boilerplate with with 👉Docker👈
sudo rm -Rf html
composer create-project laravel/laravel html
After create a new project or using yours, configure the environment variables
DB_CONNECTION=mysql
DB_HOST=laravelmysql_mysql_1
DB_PORT=3306
DB_DATABASE=laravel
DB_USERNAME=root
DB_PASSWORD=secret
Now you have to build the image from Docker image
docker-compose up -d --build
Run Laravel migrations
docker-compose run --rm artisan migrate:fresh --seed
Create an Laravel application key
docker-compose run --rm artisan key:generate
If necessary, you can remove all images using docker system prune -a --volumes
Any questions or suggestions regarding the project, please contact me on 📧 [email protected]