Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dunglas/frankenphp-drupal
Drupal on FrankenPHP
https://github.com/dunglas/frankenphp-drupal
docker docker-compose drupal frankenphp php
Last synced: 3 months ago
JSON representation
Drupal on FrankenPHP
- Host: GitHub
- URL: https://github.com/dunglas/frankenphp-drupal
- Owner: dunglas
- Created: 2022-11-07T16:26:38.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-18T10:54:48.000Z (9 months ago)
- Last Synced: 2024-09-28T10:24:23.485Z (4 months ago)
- Topics: docker, docker-compose, drupal, frankenphp, php
- Language: Dockerfile
- Homepage:
- Size: 13.7 KB
- Stars: 63
- Watchers: 4
- Forks: 9
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Drupal on FrankenPHP
Run the popular [Drupal CMS](https://drupal.org) on top of [FrankenPHP](https://frankenphp.dev),
the modern app server for PHP.## Getting Started
```console
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:
```dockerfile
FROM postgres
COPY docker-entrypoint-initdb.d/init-pg_trgm-extension.sh /docker-entrypoint-initdb.d/init-pg_trgm-extension.sh
```
2. Replace the `db` service definition in the `compose.yaml` file by this one:```yaml
db:
build:
context: .
dockerfile: postgres.Dockerfile
environment:
POSTGRES_PASSWORD: example
restart: always
```
3. In the `Dockerfile`, replace `pdo_mysql` by `pdo_pgsql`
3. 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