This is a docker laravel 10.8, php 8.1, mysql, nginx starter boilerplate.
Laravel is accessible, powerful, and provides tools required for large, robust applications.
- git clone https://github.com/anesupaul-developer/laravel-mysql-docker-boilerplate.git
- cd laravel-mysql-docker-boilerplate
- configure .env file and set mandatory fields DB_ROOT_PASSWORD, DB_DATABASE_TEST
- make test
# to run app in production run make prod. You can configure more environments inside Makefile
- docker exec -it application_php81test php artisan migrate
- docker exec -it application_php81test mkdir src/app/Repositories
- docker exec -it application_php81 php artisan tinker
Go to localhost:8089 inside your browser to see the application in testing mode. Go to localhost:8088 inside your browser to see the application in production mode.