islandora/drupal

Sponsored OSS

By islandora

Updated 1 day ago

Drupal base image.

Image
Content management system
1

100K+

islandora/drupal repository overview

Drupal

Docker image for Drupal.

Built from Islandora-DevOps/isle-buildkit drupal

Acts as base Docker image for Drupal based projects, it doesn't install Drupal as consumers of this image are expected to provide their own composer file. Instead it provides startup scripts that allow Drupal to be installed when the image is first run.

Dependencies

Requires islandora/nginx Docker image to build. Please refer to the Nginx Image README for additional information including additional settings, volumes, ports, etc.

Ports

PortDescription
80HTTP

Settings

Network Settings
Environment VariableDefaultDescription
DRUPAL_ENABLE_HTTPStrueInform PHP that https should be used.
DRUPAL_REVERSE_PROXY_IPSUse the IP address for the host 'traefik' if found otherwise default to 0.0.0.0.
Database Settings

Drupal can make use of different database backends for storage. Please see the documentation in the base image for more information about the default database connection configuration.

Environment VariableDefaultDescription
DRUPAL_DEFAULT_DB_DRIVERThe database driver. Defaults to DB_DRIVER
DRUPAL_DEFAULT_DB_HOSTThe database host. Defaults to DB_HOST
DRUPAL_DEFAULT_DB_PORTThe database port. Defaults to DB_PORT
DRUPAL_DEFAULT_DB_ROOT_PASSWORDThe database root user password. Defaults to DB_ROOT_PASSWORD
DRUPAL_DEFAULT_DB_ROOT_USERThe database root user (used to create the site database). Defaults to DB_ROOT_USER

These variables also provide the default for their site specific variants such as DRUPAL_SITE_{SITE}_DB_HOST are defined.

JWT Settings

Drupal is expected to make use of JWT for authentication. Please see the documentation in the base image for more information.

The public/private key pair used here should be the same key as is used in the crayfish and fcrepo based containers.

Default Site
Environment VariableDefaultDescription
DRUPAL_DEFAULT_ACCOUNT_EMAIL[email protected]The email to use for the admin account
DRUPAL_DEFAULT_ACCOUNT_NAMEadminThe Drupal administrator user
DRUPAL_DEFAULT_ACCOUNT_PASSWORDpasswordThe Drupal administrator user password
DRUPAL_DEFAULT_DB_NAMEdrupal_defaultThe name of the sites database
DRUPAL_DEFAULT_DB_PASSWORDpasswordThe database users password
DRUPAL_DEFAULT_DB_USERdrupal_defaultThe database user used by the site
DRUPAL_DEFAULT_EMAIL[email protected]The Drupal administrators email
DRUPAL_DEFAULT_LOCALEenThe Drupal sites locale
DRUPAL_DEFAULT_NAMEdefaultThe Drupal sites name
DRUPAL_DEFAULT_PROFILEstandardThe installation profile to use
DRUPAL_DEFAULT_SUBDIRdefaultThe installation profile to use
DRUPAL_DEFAULT_CONFIGDIRInstall using existing config files from directory
DRUPAL_DEFAULT_INSTALLtruePerform install if not already installed

Of the above you should provide at a minium your own passwords when running in production.

Multi-site

Additional multi-sites can be defined by adding more environment variables, following the above conventions, only the DRUPAL_SITE_{SITE}_NAME is required to create an additional site:

Environment VariableDefaultDescription
DRUPAL_SITE_{SITE}_ACCOUNT_EMAIL[email protected]The email to use for the admin account
DRUPAL_SITE_{SITE}_ACCOUNT_NAMEadminThe Drupal administrator user
DRUPAL_SITE_{SITE}_ACCOUNT_PASSWORDpasswordThe Drupal administrator user password
DRUPAL_SITE_{SITE}_DB_NAMEdrupal_{SITE}The name of the sites database
DRUPAL_SITE_{SITE}_DB_PASSWORDpasswordThe database users password
DRUPAL_SITE_{SITE}_DB_USERdrupal_{SITE}The database user used by the site
DRUPAL_SITE_{SITE}_EMAIL[email protected]The Drupal administrators email
DRUPAL_SITE_{SITE}_LOCALEenThe Drupal sites locale
DRUPAL_SITE_{SITE}_NAMEThe Drupal sites name
DRUPAL_SITE_{SITE}_PROFILEstandardThe installation profile to use
DRUPAL_SITE_{SITE}_SUBDIR{SITE}The subdirectory to install the sub-site into
DRUPAL_SITE_{SITE}_CONFIGDIRInstall using existing config files from directory
DRUPAL_SITE_{SITE}_INSTALLtruePerform install if not already installed

Tag summary

Content type

Image

Digest

sha256:de7a480fe

Size

76 MB

Last updated

1 day ago

Requires Docker Desktop 4.37.1 or later.

This week's pulls

Pulls:

397

Last week