This repository contains Docker compose configuration for Symfony2 project.
All configuration are under docker directory.
It use five containers :
- data : data volume container
- web : Nginx container base on nginx image
- fpm : php-fpm container base on php image
- db : Database container base on mysql image
- tools : Container with tools for web development like php-cli,composer,node/npm,git
In order to use it, download this code and place it at the root of your symfony2 project and run docker-compose up -d.
Some useful commands :
- docker-compose up -dStart all containers
- docker-compose stopStop all containers
- docker-compose run <name> <something>To execute something in a specific container like- docker-compose run tools composer install
Feel free to contribute