SaundersB / laravel-7-docker-template

This is a baseline repo to hold a Laravel 7 project hosted with Docker.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Laravel 7 Docker Development Template

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.

Setup

  1. Copy the ./app/.env.example file as ./app/.env
  2. Install Docker
  3. Install docker-compose
  4. Allow execution privileges on the scripts to manage the containers.
chmod +x up.sh
chmod +x shell.sh
  1. Bring the containers online with the up.sh script
./up.sh
  1. Enter the PHP docker container shell with the shell.sh script
./shell.sh
  1. Generate your application key
php artisan key:generate
  1. Navigate to the Laravel instance URL. http://localhost:8080/

You should now see the landing page: Landing Page

Done!

License

The Laravel framework is open-sourced software licensed under the MIT license.

About

This is a baseline repo to hold a Laravel 7 project hosted with Docker.


Languages

Language:PHP 94.9%Language:Blade 3.5%Language:Shell 1.0%Language:Dockerfile 0.6%