Public | Automated Build

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

docker-drupal-php-apache

PHP Apache Docker container for Drupal. Extended from the official PHP Apache Docker image.

Usage

  • Create a user called bro for PHP Apache 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 and optionally other containers (like a command based container for Drush). See example of a working combo here.
  • See the original official PHP Apache image for info about how to extend this container.

Includes

  • PHP Apache with extensions required by Drupal.

Rundown

  • Download and enable the following PHP extensions:
    • uploadprogress
    • 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