Public | Automated Build

Last pushed: 2 years ago
Short Description
PHP-FPM Docker container for Drupal. Extended from the official PHP-FPM Docker image.
Full Description

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:

    <pre>
    # Add the Bro user to run Nginx with permission to the files.
    RUN useradd bro -u 1000 -s /bin/bash --no-create-home
    </pre>

  • 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
Docker Pull Command
Owner
aleksijohansson

Comments (0)