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:
- Database type: MySQL, MariaDB, Percona Server, or equivalent
- Database name: drupal
- Database username: root
- Database password: example
- ADVANCED OPTIONS; Database host: db
- 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
- Replace the
db
service definition in thecompose.yaml
file by this one:
db:
build:
context: .
dockerfile: postgres.Dockerfile
environment:
POSTGRES_PASSWORD: example
restart: always
- In the
Dockerfile
, replacepdo_mysql
bypdo_pgsql
- 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