Docs
Self-hosting quickstart
Self-hosting is free and it is the complete product. This page follows the quickstart in the Kestrel README.
What you need
- A Linux machine with Docker Engine and the Compose plugin, version 2.24 or later.
- About 2 GB of free memory.
- For access from other machines, a DNS name pointing at the machine, with ports 80 and 443 open.
Install
Download setup.sh from the latest release, run it, then start the stack from the directory it creates:
sh setup.sh
cd docs && docker compose up -d --wait
The script asks for the address people will use:
https://wiki.example.comfor a server. The stack then includes Caddy, which gets and renews a certificate for that name automatically.http://localhost:8080to try it on your own computer.
It creates a directory holding compose.yaml and a settings file, .env, readable only by you, with every password and key generated. You can pass the answers as options to skip the questions, for example sh setup.sh --url https://wiki.example.com --email [email protected] --yes. Run sh setup.sh --help for the full list.
First sign-in
Open the address and create the first account. It becomes the site administrator, and sign-up closes after it. Invite everyone else from the app.
To send invitation, verification and password reset emails, add your SMTP server to .env (the KESTREL_SMTP_* settings) or set it under Administration, then Email.
Using your own reverse proxy
If the machine already runs a reverse proxy, answer with the https:// address and pass --own-proxy. Kestrel then listens on 127.0.0.1:8080 only. Point your proxy there, pass websockets through for /collab, keep the Host header, and set X-Forwarded-For and X-Forwarded-Proto.
Upgrades
Back up first, then in the directory that holds compose.yaml:
sh setup.sh upgrade
docker compose pull && docker compose up -d --wait
The database schema is migrated automatically before the new version starts. Migrations are not reversed by going back to older images, which is why the backup matters.
Backups
Everything is in two Docker volumes, the database and uploaded files, plus your .env, which holds the keys that protect passwords and two-factor secrets. Keep all three. The README lists the exact commands, and the container stack guide in the repository describes how to restore.
Licence
Kestrel is licensed under FSL-1.1-ALv2. See the self-hosting page for a plain summary.