Sign inSign up

aleksijohansson/drupal-php-fpm

By aleksijohansson

•Updated about 11 years ago

PHP-FPM Docker container for Drupal. Extended from the official PHP-FPM Docker image.

Image
0

1.8K

aleksijohansson/drupal-php-fpm repository overview

⁠docker-drupal-php-fpm

PHP-FPM Docker container for Drupal. Extended from the official PHP-FPM Docker image.

⁠Usage

  • Create a user called bro for PHP-FPM to run as and set the user id in your Dockerfile so that you can match it to the host user id to avoid permission problems. For example if you host user is called aleksi and has user id 1000 add this to your Dockerfile:
# Add the Bro user to run Nginx with permission to the files.
RUN useradd bro -u 1000 -s /bin/bash --no-create-home
  • This container is meant to be used together with a linked MariaDB, Nginx and optionally other containers (like a command based container for Drush⁠). See example of a working combo here⁠.
  • See the original official PHP-FPM⁠ image for info about how to extend this container.

⁠Includes

  • PHP-FPM with extensions required by Drupal.

⁠Rundown

  • Download and enable the following PHP extensions:
  • memcache⁠
  • gd - also libpng12-dev, libjpeg62-turbo-dev, libfreetype6-dev required from apt
  • mcrypt - also libmcrypt-dev required from apt
  • pdo_mysql, mbstring, zip and opcache

Tag summary

Content type

Image

Digest

sha256:116c86e5e…

Size

166.1 MB

Last updated

almost 11 years ago

docker pull aleksijohansson/drupal-php-fpm