Drupal compatible PHP-FPM image
This image is indented to be used as a PHP container in a Drupal application's infrastructure. Memcache (memcached for php 7) and uploadprogress PECL extensions available. SOAP PHP extension is also available. Composer is also bundled, and will update itself when the container is ran.
php: image: groovycarrot/drupal-php-fpm:5.6 environment: PHP_TIMEZONE: 'Europe/London' volumes_from: - data nginx: image: groovycarrot/drupal-nginx ports: - '8000:80' volumes_from: - data links: - php:fpm
For development you will need to set the following environment variable, otherwise your code changes will take 60 seconds by default to take effect.
-xdebug images the environment variables are available:
PHP_XDEBUG_REMOTE_ENABLE 1 PHP_XDEBUG_REMOTE_AUTOSTART 0 PHP_XDEBUG_REMOTE_CONNECT_BACK 1 PHP_XDEBUG_REMOTE_HANDLER dbgp PHP_XDEBUG_REMOTE_PORT 9000 PHP_XDEBUG_VAR_DISPLAY_MAX_DEPTH 5