Linux Docker Image

A standard CentOS image tuned for developing in Drupal 6, 7, 8, PHP 5.2, PHP 7.1, MariaDB (MySQL) and Perl. Can be used for production or development environments.

Only tools are provided on here and no software by default. Drupal can be installed as well as contributed modules by using the environment variables specified later in this document. Composer, Drush and Drupal Console are included within the container for convenience. It is recommended all be used within the container for the best results. Be sure to mount any needed file paths as volumes to ensure persistence.

PHP 5.2/Drupal 6 Notes

Note that PHP 5.2 is only available on the d6 tag of this repository. It runs and is configured identically to the master branch (without the installation environment variables) in terms of file locations for DocumentRoot.

Apache Settings & Configurations:

DocumentRoot: /var/www/html/web
Volume Mount Point: /var/www

phpMyAdmin URL


  • Configurable options for SSL certificates.

Last Updated: March 11, 2018

Environment Variables

A list of contributed modules to install alongside Drupal. These should be listed consecutively the same way you would list them in a composer require statement.

The version of Drupal to install. Currently supports 8.x-dev and 7.x-dev. Keep in mind this container uses PHP 7.1, so your mileage may vary with Drupal 7.

THe web site description to appear in the htaccess username/password box. This is what determines if this option is enabled. A value here enables the htaccess authentication system in Apache. Omission leaves it disabled.

The password for the user configured in the htaccess dialog.

The username to be configured in the htaccess dialog.

Default Value: 300
The PHP "max_execution_time" directive setting value.

Default Value: 300
The PHP "max_input_time" directive setting value.

Default Value: 386M
The PHP "memory_limit" directive setting value.

Default Value: 256M
The PHP "post_max_size" directive setting value.

Default Value: 256M
The PHP "upload_max_filesize" directive setting value