This report contains a set of files that can be used to dockerize and develop a Larvel 7 application. I've used a PHP 7.4 container along with a MySQL 5.7 container.
- Copy the ./app/.env.example file as ./app/.env
- Install Docker
- Install docker-compose
- Allow execution privileges on the scripts to manage the containers.
chmod +x up.sh
chmod +x shell.sh
- Bring the containers online with the up.sh script
./up.sh
- Enter the PHP docker container shell with the shell.sh script
./shell.sh
- Generate your application key
php artisan key:generate
- Navigate to the Laravel instance URL. http://localhost:8080/
You should now see the landing page:
Done!
The Laravel framework is open-sourced software licensed under the MIT license.