Skip to content

druidfi/frankenphp-drupal

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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:

  • Database type: MySQL, MariaDB, Percona Server, or equivalent
  • Database name: drupal
  • Database username: root
  • Database password: example
  • ADVANCED OPTIONS; Database host: db

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:
  • Database type: PostgreSQL
  • Database name: postgres
  • Database username: postgres
  • Database password: example
  • ADVANCED OPTIONS; Database host: postgres

Languages

  • Dockerfile 100.0%