A Laravel, Docker, Nginx, MySQL, Redis, and Mailhog template
Contributions are always welcome😀!
- Fork the Template🍴
- Make Changes
- Push your commits to the forked repo
- Make a Pull Request
- Kindly wait for it to be merged
- Buy yourself a ☕ if it's merged🎉
Web-framework: Laravel
Containerization Platform: Docker
Load-Balancer: Nginx
Package-Manger: Composer
Email Testing Tool: Mailhog
Programming-Language : Php
Database : Mysql
After you have cloned this repository or used this template as your starter code then run
docker-compose build && docker-compose up -d
After successfull pulling image and creating all containers now you can create a laravel app
first go to src/
folder
cd src
and then run
docker-compose run --rm composer create-project laravel/laravel .
you will see that in our containers we have npm
, composer
and artisan
this guarante you that you can run the app without installint them manually to run each you can try the following commands
docker-compose run --rm composer update # this is just composer update
docker-compose run --rm npm run dev # this is just npm run dev
docker-compose run --rm artisan server # this is just php artisan serve
If you want to continue with laravel mix you can take a look on inspiration repo below
This template was inspired by docker-compose-laravel
If you found this template useful, please star the project or edit this ReadMe to leave a Review here:
- @Reviewer: This is a review text, you can edit this ReadMe.md file and create request for you review to be added, Thanks😀.
Copyright (C) [2021] Drop-Youngers