Sign inSign up

viktorsteinwand/php

By viktorsteinwand

•Updated over 8 years ago

This repository contains PHP docker images for Symfony2 or Symfony3 applications

Image
1

6.0K

viktorsteinwand/php repository overview

⁠viktorsteinwand/php

This repository contains PHP docker images for Symfony2 or Symfony3 applications.

⁠Using this image with docker-compose

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/html

⁠Development environment

The 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/html

⁠Blackfire profiler

The 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/html

Additionally 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⁠

Tag summary

Content type

Image

Digest

Size

187.2 MB

Last updated

over 8 years ago

docker pull viktorsteinwand/php