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 upDrupal 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.Dockerfilewith 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
dbservice definition in thecompose.yamlfile by this one:
db:
build:
context: .
dockerfile: postgres.Dockerfile
environment:
POSTGRES_PASSWORD: example
restart: always- In the
Dockerfile, replacepdo_mysqlbypdo_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