This is a Docker multi-container for the Laravel PHP Framework. The Compose file provides the following services:
The following one-off containers are provided for the common Laravel tasks:
To simplify the process of dockerizing a Laravel webapp you can use the yeoman docker-laravel generator based on this repo. The Git repository has detailed instructions on how to run the generator and a series of 5 videos that show each container working.
Important notes:
docker-compose
is required because the Compose file reads environment variables from the .env fileTo provide consistency all images (except the official ones) are based on debian:jessie. All PHP related containers are based on the same PHP 7 container. The rational behind this is to guarantee that the development and test environment are the same as the one used for the Nginx container.
Size of each image:
vcarreira/nginx-php7-fpm 599 MB
vcarreira/redis 183 MB
Must of this work is based on:
:ok_hand: Happy Coding.
If you have any feedback or questions, feel free to contact me on Twitter with @vcarreira or email with vitor.carreira@gmail.com.