Run the popular Drupal CMS on top of FrankenPHP, the modern app server for PHP.
git clone https://github.com/dunglas/frankenphp-drupal
cd frankenphp-drupal
docker compose pull --include-deps
docker compose up
Drupal is available on https://localhost
.
During initial Drupal setup, use the following database configuration:
postgres.Dockerfile
with this content:FROM postgres
COPY docker-entrypoint-initdb.d/init-pg_trgm-extension.sh /docker-entrypoint-initdb.d/init-pg_trgm-extension.sh
db
service definition in the compose.yaml
file by this one:db:
build:
context: .
dockerfile: postgres.Dockerfile
environment:
POSTGRES_PASSWORD: example
restart: always
Dockerfile
, replace pdo_mysql
by pdo_pgsql