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: May 6, 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.

Default Value: NULL
Set to 1 (or any value) if you want to put HSTS headers in your Apache headers. Do not configure this item or set to 0 to disable.

Default Value: 0
Dictates whether the HSTS header should be preloadable. PLEASE USE WITH CAUTION ( Set to 1 if you want to put HSTS headers in your confiuguration or 0 if you do not (if unset, zero is assumed).

Default Value: 3600
The TTL for an HSTS configured header (1 Hour by default).

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.

Deafult Value: Off
This directive controls whether or not and where PHP will output errors, notices and warnings.

Deafult Value: Off
The display of errors which occur during PHP's startup sequence are handled separately from display_errors.

Default Value: 300
Maximum execution time of each script, in seconds. A value of 0 disables the limit.

Default Value: 300
Maximum amount of time each script may spend parsing request data. A value of -1 disables the limit.

Default Value: 1000
How many GET/POST/COOKIE input variables may be accepted.

Default Value: 386M
Maximum amount of memory a script may consume.

Default Value: 256M
Maximum size of POST data that PHP will accept. A value of 0 disables the limit.

Default Value: 256M
Maximum allowed size for uploaded files.