This repository contains PHP docker images for Symfony2 or Symfony3 applications.
Add these lines to your docker-compose.yml to use this image:
php-fpm:
image: viktorsteinwand/php:7.1-fpm-symfony
volumes:
- /path/to/php-project:/var/www/htmlThe extention xdebug and phpunit are installed in the Dockerfile for development only. In development environment please use viktorsteinwand/php:7.1-fpm-symfony-dev:
php-fpm:
image: viktorsteinwand/php:7.1-fpm-symfony-dev
volumes:
- /path/to/php-project:/var/www/htmlThe extention blackfire Probe is installed in the Dockerfile for performance profiling only. Please use viktorsteinwand/php:7.1-fpm-symfony-blackfire for such purposes:
php-fpm:
image: viktorsteinwand/php:7.1-fpm-symfony-blackfire
volumes:
- /path/to/php-project:/var/www/htmlAdditionally the blackfire service must be added as well to the docker-compose file:
blackfire:
image: blackfire/blackfire
environment:
- BLACKFIRE_SERVER_ID=<your-blackfire-server-id>
- BLACKFIRE_SERVER_TOKEN=<your-blackfire-server-token>
For further information see https://blackfire.io/docs/up-and-running/installation