Get Started
Prerequisites
Before you begin, make sure your system meets the following requirements.
System Requirements
Uni-Verein runs on very modest hardware. The minimum is a Raspberry Pi 3, for everyday use we recommend a bit more power.
| Minimum | Recommended | |
|---|---|---|
| Hardware | Raspberry Pi 3 | Current mini PC, server, or VPS |
| RAM | 1 GB | 2 GB or more |
| CPU | 4 cores (Raspberry Pi 3) | 2 or more cores of a current processor |
ℹ️ On a Raspberry Pi 3 the software is perfectly usable. Only the login takes noticeably longer there, after that the application responds smoothly. If that bothers you or many people work at the same time, go with the recommended specs.
Required Software
- Docker & Docker Compose – to run the application
- Install Docker
- Docker Compose is already included with Docker Desktop
- curl – to download the configuration files (preinstalled on most systems)
For running with HTTPS (recommended)
- A domain whose DNS A/AAAA record points to your server's public IP address
- Ports 80 and 443 must be reachable from the internet (check your firewall, cloud security group, and router port forwarding). Port 80 is required even for HTTPS, because it is used to issue the certificate and to redirect plain HTTP visitors to HTTPS
Step 1: Install Docker
If Docker is not yet installed, download it from the official website and install it:
👉 https://docs.docker.com/get-docker/
After installation, verify that Docker is working correctly:
docker --version
docker compose version
Step 2: Install and Run the Project
Choose one of the two options. What matters is whether something in front of Uni-Verein already handles HTTPS encryption (e.g. a load balancer from your host, a Cloudflare Tunnel, or an existing reverse proxy).
Option A: With HTTPS (recommended)
Use this option unless you already handle encryption in front of Uni-Verein. A free Let's Encrypt certificate is obtained and renewed automatically, Caddy is included for this.
- Download the configuration and installation files
curl -O https://raw.githubusercontent.com/uni-verein/uni-verein/main/nginx.conf
curl -O https://raw.githubusercontent.com/uni-verein/uni-verein/main/Caddyfile
curl -O https://raw.githubusercontent.com/uni-verein/uni-verein/main/docker-compose-ini.yml
curl -O https://raw.githubusercontent.com/uni-verein/uni-verein/main/docker-compose-tls.yml
- Generate the environment variables in the .env file
touch .env && mkdir backup && docker compose -f docker-compose-ini.yml up
Edit the .env file, change the database passwords, and enter your domain:
DB_ROOT_PASSWORD=rootUserPassword
DB_NAME=uni-verein
DB_USER=databaseUserName
DB_PASSWORD=databaseUserPassword
DOMAIN=verein.example.org
ACME_EMAIL=admin@example.org
DOMAIN is the address under which Uni-Verein should be reachable. ACME_EMAIL is registered with Let's Encrypt for notices about the certificate.
- Start the application
docker compose -f docker-compose-tls.yml up -d
The application will then be accessible at https://<your-domain>. 🎉 The certificate is requested automatically on first start, which can take up to a minute. This requires the DNS record and open ports 80/443. If the page doesn't show up, check Caddy's logs:
docker compose -f docker-compose-tls.yml logs caddy
Option B: HTTPS is already handled in front of Uni-Verein
⚠️ Only use this option if encryption is really already set up in front of Uni-Verein. This path serves plain HTTP with no encryption of its own. Exposing it directly to the internet sends credentials, session tokens, and member data (including IBANs) in the clear.
- Download the configuration and installation files
curl -O https://raw.githubusercontent.com/uni-verein/uni-verein/main/nginx.conf
curl -O https://raw.githubusercontent.com/uni-verein/uni-verein/main/docker-compose-ini.yml
curl -O https://raw.githubusercontent.com/uni-verein/uni-verein/main/docker-compose-prod-image.yml
- Generate the environment variables in the .env file
touch .env && mkdir backup && docker compose -f docker-compose-ini.yml up
Edit the .env file and change the database passwords:
DB_ROOT_PASSWORD=rootUserPassword
DB_NAME=uni-verein
DB_USER=databaseUserName
DB_PASSWORD=databaseUserPassword
- Tell Uni-Verein about your reverse proxy
The login lockout, the rate limits and the IP address shown for self-enrollments work per visitor address. Here Uni-Verein only sees the address of your proxy, so it has to read the visitor address from the X-Forwarded-For header, and it believes that header only from proxies you list. Without this step every visitor looks like the proxy: all users share one login lockout (three wrong passwords of anyone lock the account for everybody) and one rate limit.
Next to the compose file in your installation directory, create the folder trusted-proxies and put the address of your proxy (the address Uni-Verein sees the requests coming from; IPv6 and networks like 192.168.1.0/24 work too) into a .conf file in it:
mkdir -p trusted-proxies
echo "set_real_ip_from <address of your proxy, e.g. 192.168.1.20>;" > trusted-proxies/proxy.conf
Your proxy has to overwrite the header with the address of the visitor and must not pass on what the visitor sent. With nginx as the proxy:
location / {
proxy_pass http://<address of Uni-Verein>:80;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $remote_addr;
}
Other proxies (Traefik, Nginx Proxy Manager, Apache, ...) set the header on their own, check that it contains the visitor address. Only the proxy may be able to reach Uni-Verein: block port 80 for all other machines with a firewall, otherwise they can send the header themselves and choose any address. To check it, open the application from outside and look at the log of the proxy container (docker compose -f docker-compose-prod-image.yml logs proxy): it must show your own address and not the one of your proxy. Restart the container after changing the folder (docker compose -f docker-compose-prod-image.yml restart proxy).
ℹ️ Option A (HTTPS via Caddy) does not need this step.
- Start the application
docker compose -f docker-compose-prod-image.yml up -d
The application will then be accessible at http://localhost:80. 🎉
ℹ️ As of version 1.4.0, Uni-Verein uses PostgreSQL instead of MariaDB as its database engine. A fresh install using the files above sets up PostgreSQL directly; the .env variable names stay the same.
Checking containers and logs
To check the running containers (use -f docker-compose-tls.yml for Option A, -f docker-compose-prod-image.yml for Option B):
docker compose -f docker-compose-tls.yml ps
To view the logs:
docker compose -f docker-compose-tls.yml logs -f
Step 3: First-Time Setup
A fresh installation has no user account yet, so there is no default password any more. When you open the application for the first time, it shows the "First-time setup" page where you create the first administrator:

You need the setup token for this. docker-compose-ini.yml prints it in the last lines of its output and stores it in your .env as SETUP_TOKEN. It only protects the first-time setup: whoever reaches a new server before you can't take it over without the token.
Enter the token, a user name, an email address and a password of 10 to 50 characters that you type twice identically. After "Complete setup" you are logged in as administrator right away. As soon as a user exists, the page is gone and the token is no longer needed.
To see how to continue, read the Quick Start.
Updating
As an admin, you'll see a notification bell in the app once a new version is available. Before updating, create a manual backup (database backup and member export, both available under Settings → Backup in the app). Then run this from your installation directory (the one containing .env):
curl -O https://raw.githubusercontent.com/uni-verein/uni-verein/main/docker-compose-update.yml
docker compose -f docker-compose-update.yml run --rm update
It checks GitHub for the latest release and asks you to confirm that you've created a manual backup — the update only proceeds once you type yes. It then downloads the matching nginx.conf and the compose file of your installation (docker-compose-tls.yml plus Caddyfile for Option A, docker-compose-prod-image.yml for Option B), updates VERSION in your .env, and restarts the stack on the new version. Your existing secrets and database are left untouched.
ℹ️ The Caddyfile is overwritten on every update, just like nginx.conf. Local changes to it are lost. DOMAIN and ACME_EMAIL live in .env and are preserved.
⚠️ Important when updating to 1.8.1 or newer: Since 1.8.1, proxy and frontend listen on port 8080 inside the container (the host port stays 80), and all containers run without root privileges. Therefore always update with the command above, which replaces nginx.conf and the compose file together and prepares the logs/ and receipts/ directories. If you use self-enrollment, open the general settings once after the update and save them, so the public URL for the confirmation links is stored. Details are in the 1.8.1 blog post.
⚠️ Important when updating to 1.9.1 or newer (Option B with your own reverse proxy only): Up to 1.9.0 the X-Forwarded-For header was trusted from every address in Docker's default range 172.16.0.0/12, which allowed bypassing rate limits and the login lockout and forging the IP of self-enrollments. Since 1.9.1 only the Caddy from docker-compose-tls.yml is trusted (Option A, nothing to do). If you run your own reverse proxy in front, create the folder trusted-proxies once when you update (see Option B, step 3), otherwise the visitor addresses are lost and all users share one rate limit and one login lockout. The folder is not touched by updates. Details are in the 1.9.1 blog post.
⚠️ Important when updating to 1.10.0 or newer: Since 1.10.0 the login token lives in an httpOnly cookie instead of localStorage, and changing the password, logging out and changing the two-factor authentication end the sessions on other devices. For that, the nginx.conf has to be updated together with the images (X-Forwarded-Proto). docker-compose-update.yml does this automatically, if you maintain the files by hand you have to download them again. After the update all users have to log in once again. API clients must send the token as Authorization: Bearer, ?access_token= is no longer accepted. Mail servers without encryption no longer work when "SSL enabled" is set. The migration sets all income and receipt categories to the "Non-profit sphere", assign the tax areas before the first EÜR export.
⚠️ Important when updating to 1.10.1 or newer: The default user Admin with the password admin123 is no longer created. Existing installations keep their users but are no longer forced to change the password. If a default password is still set, change it yourself under "Profile settings". The migration assigns all existing data to a fixed default tenant (preparation for multiple tenants), a single installation behaves as before and older backups can still be restored. If you are still updating from MariaDB (version 1.3.1 or older), the path for that now lives in the legacy-update/ folder of the README. Details are in the 1.10.1 blog post.
⚠️ Important when updating to 1.11.0 or newer: Embedding the enrollment form needs two new entries in the nginx.conf (/_embed_policy and /embed/enroll, both with auth_request), which have to be updated together with the backend. docker-compose-update.yml does this automatically. If you maintain the files by hand, you have to download them again. If you maintain your own proxy rules, you have to add the same two locations. The "Self-enrollment" switch now lives in its own table, the migration carries over the previous value. Details are in the 1.11.0 blog post.
⚠️ Important if you're updating from before 1.4.0: As of version 1.4.0, Uni-Verein switches its database engine from MariaDB to PostgreSQL. Installations still on MariaDB are first brought to 1.3.1 automatically; the next update run then migrates the database to PostgreSQL and switches over the whole stack. This adds downtime proportional to your database size — rerun the update command as needed until it reports "Already up to date". See the 1.4.0 blog post for the full migration process and its safety net.
Running a demo instance
If you want to present or try out Uni-Verein, you can start a demo instance with sample data, just like the one running at demo.uni-verein.de. docker-compose-demo.yml builds nothing itself, needs no SQL dump and uses the published images.
- Download the files and create the
.envas in Option B above (nginx.conf,docker-compose-ini.ymland additionallydocker-compose-demo.yml). - Choose the version:
VERSIONin the.envdetermines which published images are started.DEMO_DATA_PATHis the folder for database, receipts and logs (default./demo-data). - Start:
docker compose -f docker-compose-demo.yml up -d
In demo mode (Demo__Enabled=true):
- The backend wipes the database and the receipt files at every start and every day at 03:00 UTC and generates new sample data based on the current date. So never enable this mode on an installation with real data. Only the values
true,1,yesoronswitch it on, any other value leaves the data untouched. - E-mails are not sent but caught by Mailpit and can be viewed at
/mail/. - The login page shows a demo hint with the credentials. The published frontend image detects demo mode itself, no separate build is needed anymore.
- Backup download and restore are blocked on the server, and two-factor authentication is not available.