My Symfony development environment using Docker and orchestrated with Fig.
The environment will set up the following containers:
web
with Nginx and PHP 5 FPM ;memcached
with a Memcached instanced used to store PHP sessions ;db
with MySQL ;- and
hipache
as frontend to theweb
containers.
NOTE: this setup integrates well with willdurand's docker-buildtools container.
You can create the following aliases to easily access your build tools:
alias composer="docker run --rm -v $(pwd):/srv willdurand/buildtools composer --ansi"
alias bundle="docker run --rm -v $(pwd):/srv willdurand/buildtools bundle"
etc.
Building the images:
fig build
Starting the containers:
fab up