This repo is mainly to hold the template for me to Docker-ize any of my laravel applications.
This has all the required services such as Nginx, MariaDB (MySQL), Redis, PHPMyAdmin, and MailHog. It's easy to expand upon, and should run smoothly.
- Remove .gitkeep from /src
- Clone Your Repo or Create a new Laravel App in /src
- Setup the ENV; make sure DB_HOST is the name of the database service in docker-compose.yml
- Run
./local.sh start
from the root directory - Once all containers are up run
./local.sh ssh
- Once inside the container cd into /src and run
composer install && npm i
to install all of your laravel dependencies and npm packages