Home

Awesome

Drupal on FrankenPHP

Run the popular Drupal CMS on top of FrankenPHP, the modern app server for PHP.

Getting Started

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:

Using PostgreSQL instead of MariaDB

  1. Create a file named 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
  1. Replace the db service definition in the compose.yaml file by this one:
db:
    build:
    context: .
    dockerfile: postgres.Dockerfile
    environment:
    POSTGRES_PASSWORD: example
    restart: always
  1. In the Dockerfile, replace pdo_mysql by pdo_pgsql
  2. During initial Drupal setup, use the following database configuration: