Skip to content

Laravel development environment based on PHP-FPM, Nginx and MySQL, running out of Docker containers

Notifications You must be signed in to change notification settings

yurimataev/laravel-docker-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Laravel Docker Test

Laravel development environment based on PHP-FPM, Nginx and MySQL, running out of Docker containers. This was done as practice in using docker-compose and setting up a CI/CD pipeline; use something like Laradock for actual development.

Setup

After cloning this repo, set up shop in the app folder using:

docker run --rm -v $(pwd):/app composer create-project laravel/laravel app

Start everything with:

docker-compose up -d

Execute artisan commands using:

docker-compose exec app php artisan [...]

You can tweak MySQL, Nginx and PHP settings in the settings files located in the respective directories.

Acknowledgements

The unified PHP-FPM / Nginx Docker container was based on docker-php-nginx by Tim de Pater. Thanks to him for his work!

License

This code is made available under the MIT license.

About

Laravel development environment based on PHP-FPM, Nginx and MySQL, running out of Docker containers

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published