Quick start
Requirements
The stack requires Docker with Compose 2.17 or later and internet access to download the images. On ARM64 hosts, Docker must be able to run amd64 images because veraPDF is published as an amd64 image. The main branch always contains the latest release. A specific release is cloned with git clone --branch <tag>, for example --branch v0.7.3. Without Git, the source archive (ZIP) can be downloaded and extracted; the extracted folder is named beantragt-main. The project README describes the release, and the Compose file defines the services and ports.
Start
git clone https://github.com/civicpatches/beantragt.git
cd beantragt/deploy/selfhost
cp .env.example .env
docker compose up -d --wait --wait-timeout 300
After startup, the following addresses are available on the machine running Docker.
| Address | Content |
|---|---|
http://localhost:13000/musterstadt/start | Musterstadt citizen portal |
http://localhost:13000/auth/login | Sign-in for citizens and staff |
http://localhost:18025 | Mailpit with the one-time sign-in codes |
All browser addresses use the same host name localhost. The published ports are bound to loopback only.
If startup fails on Docker networks
On hosts with many Docker networks, startup stops with all predefined address pools have been fully subnetted. In that case a compose.override.yaml file with fixed subnets is created next to compose.yaml. The example ranges are replaced with free ranges that overlap neither each other nor existing Docker networks, host routes or VPN routes. docker compose up -d --wait --wait-timeout 300 is then run again; Compose loads the file automatically. An example is in the operations guide under Docker networks.
Test accounts
Sign-in works without a password. Entering the email address of a test account sends a one-time code, which appears in Mailpit. In the default setup Mailpit captures all messages and nothing is delivered externally.
| Test account | Role |
|---|---|
buerger@example.invalid | Citizen submitting applications through the citizen portal |
verwaltung@example.invalid | Fachadministration for forms, settings and all departments |
stadtkasse@example.invalid | City treasury caseworker, for example for dog tax |
citizen-services@example.invalid | Citizen services caseworker with example residential parking permit cases |
The release self-hosting guide lists further department accounts. Accounts and roles explains the roles.
Sign-in
http://localhost:13000/auth/loginis opened and the email address of a test account is entered.- In Mailpit at
http://localhost:18025, the new message for that address is opened and the one-time code is entered on the sign-in page.
First run
- With the citizen account, a dog is registered for dog tax in the citizen portal. If the portal asks for email confirmation, the message is opened in Mailpit.
- After signing in with the treasury account, the application is found in the application list by its reference number.
- After sign-in with the Fachadministration account, the application list opens; the form overview is in the sidebar under “Formulare”.
On first startup ClamAV downloads its signatures. Until then, uploads follow the scan policy. Drupal initialises an empty database and keeps configuration, files and generated secrets for later starts. docker compose down stops the stack and keeps the data.
Setup without sample data, an existing mail server and operation behind TLS are described under Operation.