Operation
Operation
Structure of the Compose package, services, ports and data of a self-hosted installation.
The self-hosting package is located in the backend repository under deploy/selfhost. It consists of compose.yaml, the additions compose.mail.yaml and compose.build.yaml, the .env.example template and the Drupal start scripts.
Services and ports
| Service | Purpose | Host port |
|---|---|---|
ui | Citizen portal and casework | UI_PORT, default 13000 |
nginx | Serves Drupal | DRUPAL_PORT, default 18080 |
drupal | Drupal with PHP-FPM | none |
db | MariaDB | none |
docgen | Document service | none |
docgen-gotenberg, docgen-verapdf | PDF/A conversion and validation | none |
clamav | Virus scanning of attachments | none |
mailpit | Test mailbox in the default setup | MAIL_PORT, default 18025 |
Published ports are bound to loopback. Docgen, Gotenberg and veraPDF run in internal Docker networks without outside connectivity.
Data and secrets
On first startup, Compose generates the database and service passwords, the Drupal salt, the application encryption key and the token for the document service. Database, files and secrets are stored in named volumes. docker compose down keeps these volumes. docker compose down --volumes deletes the data and secrets of the installation. A complete backup covers all volumes of the project.
Topics
- Installation: images, versions,
.env, building from source and updates. - Email delivery: Mailpit or an existing SMTP server.
- Documents: Docgen, decision notices and PDF/A.
- Accounts and roles: staff accounts, departments and Fachadministration.
- Separate hosts: citizen portal and casework on their own hosts.