Docker image based on Debian, Nginx and PHP-FPM 7.0 providing a Symfony2+ prod-like environment.
Available on Docker Hub chalasr/symfony-dev.
- Debian 8.4 (Jessie)
- Nginx 1.8
- PHP-FPM 7.0
- git, vim, nano, wget, curl, php-cli, php-intl, php-mcrypt, php-curl, php-xml, php-apcu, php-gd
$ docker pull chalasr/symfony-dev
$ git clone https://github.com/chalasr/docker-symfony-dev
$ docker build -t "chalasr/symfony-dev" ./docker-symfony-dev
$ docker run -t -i -p 8080:80 -v /path/to/sf/:/var/www chalasr/symfony-dev
Note: The /sf/
part of /path/to/sf/
symbolizes the root directory of your project, the /sf/web/
directory must exist, as nginx will use it as document root.
For docker running natively (Linux or OSX with beta version), go to http://localhost:8080
.
For docker running throughout a VM (i.e. docker-machine), replace localhost by the container IP address.
This project is always looking for better performances, newer tools and features.
Every kind of contributions are welcome (opinions included!) via GitHub Issues and PRs.
This image is licensed under the MIT license.
For the whole copyright, please refer to the distributed LICENSE file.