Install¶
This is the Docker compose way. On Kubernetes, see Kubernetes.
1. Get Fedisport and make the settings¶
git clone https://github.com/oculos/fedisport.git && cd fedisport
docker build -t fedisport:dev .
docker run --rm fedisport:dev fedisport new-env --domain run.example --name "Run Club" > .env
chmod 600 .env
new-env writes every setting with fresh secrets. Open .env and fill in:
- the email settings (
KEYCLOAK_SMTP_*), which Keycloak needs to send password and invitation emails; FEDISPORT_BIND_ADDRandFORWARDED_ALLOW_IPS, if your reverse proxy is on another machine;- optional: place names (
FEDISPORT_GEOCODER=nominatim) and street maps (FEDISPORT_MAPS=regions).
Keep the key
Copy FEDISPORT_KEY_ENCRYPTION_KEY to a password manager now. It encrypts every
stored file and key; a backup is useless without it.
2. The reverse proxy¶
Point both names at your proxy, with TLS:
run.example→FEDISPORT_BIND_ADDR:8000auth.run.example→FEDISPORT_BIND_ADDR:8080, except/adminand/realms/master, which must not be public (the Keycloak admin console stays on your network).
Allow request bodies up to 4 GB on run.example (nginx: client_max_body_size 4g;)
and long timeouts.
3. Start¶
docker compose up -d
docker compose ps # db, keycloak, web, worker running; migrate and keycloak-setup exited 0
keycloak-setup creates the sign-in realm from your settings. Check it said
"Changed: realm fedisport: created" (docker compose logs keycloak-setup).
4. The first account¶
docker compose exec web fedisport invite --note me
Open the printed link, choose your handle and email, set your password from the email, and sign in. The first account is the admin.
5. Then¶
- Admin → Site: name, description, logo, rules, who can join.
- Admin → Terms & privacy: fill in the placeholders.
- Backups, and join the network.