Self-hosting Rift
A Rift server is chat, voice and screen sharing on a machine you control, with messages nobody but their recipients can read — including you.
Running one is two commands and a web page. Everything past that — the keys, the database, the certificate, the endpoints — is generated and applied for you, because every one of those is a way to get it subtly wrong and not find out for weeks.
curl -fsSL https://joinrift.app/self-host/docker-compose.yml -o docker-compose.yml
docker compose up -d
That starts one container: a console, on
http://localhost:8080. It asks for a domain and a name,
generates every secret, brings up the rest of the stack, and hands you an
invite link to paste into the app.
What you are running
Ten containers. Nine of them are ordinary open-source software, unmodified — Postgres, an API gateway, an auth service, a realtime server, object storage, an edge runtime, a reverse proxy, and LiveKit for calls. The tenth is Rift's console, which exists to set the others up and keep them current.
Rift adds no forks. What it contributes is data: the database schema, the server endpoints, and the settings that make the rest behave. That is a deliberate constraint — it means a Rift server is auditable as the sum of things you already trust, plus SQL you can read.
What the server can and cannot see
| Data | Visible to the server operator |
|---|---|
| Channel and direct messages | No — encrypted on the device, opened only by members |
| Voice and video | No — the call server forwards frames it cannot decode. A call between two members in their DMs is encrypted with a key only those two can work out, so no other member can join it either |
| Attachments | No — stored as ciphertext |
| Who is a member, and of which channels | Yes |
| That a message was sent, when, and by whom | Yes |
| Calls between two members | Yes — who called whom, when, whether it was answered and how long it lasted. Never what was said |
| Reactions, pins and poll votes | Yes — who reacted with which emoji, which messages are pinned, and who picked which option number; never what a message or a poll’s options say. Members see only a poll’s totals |
| Bot traffic and webhook messages | Yes — deliberately, and marked as such in the app |
Running the server does not let you read it. That is worth understanding before you offer one to anybody: there is no recovery path for a member who loses their password and their recovery key, and no support request that can undo it.
Before you start
| You need | Why |
|---|---|
| Docker with the Compose plugin | Everything runs in containers |
| A domain pointing at the machine | A certificate is issued for it automatically |
| Ports 80 and 443 reachable | The certificate, and everything clients talk to — unless you already run a reverse proxy, which can keep them |
| UDP 7882 and TCP 7881 reachable | Call audio and video, which cannot go through a proxy — needed either way |
| About 4 GB of RAM and 2 CPUs | Ten containers, most of them idle most of the time |
A domain is not optional, and neither is HTTPS.
Android has refused cleartext HTTP by default since API 28, so a server
reachable only at http:// works from a desktop and is
invisible to every phone. There is no setting in the app that changes
this.
What stays yours to do
Setup generates every secret, applies the schema and fetches the certificate, so the list is shorter than most self-hosted software. It is not empty:
| Job | Where it is covered |
|---|---|
| Backups, and testing that they restore | Backups — nothing here does this for you |
| Keeping the host and Docker patched | Yours, as with anything you run |
| Giving it a big enough machine | Sizing the machine — measured, per member and per message |
| Opening the two voice ports | Installation |
| Applying updates | Updating — one button in the console |
| Keeping the domain | It is part of every member's identity, not just an address |
Where things live
| Thing | Where |
|---|---|
| Your server | Your machine. Members, channels, messages, attachments. |
| Rift accounts | A shared service, used only to sign in and to hold an encrypted backup of your keys. |
| The public directory | Optional. A listing so people can find your server; nothing is listed unless you ask. |
Members can skip the Rift account entirely — the app offers privacy mode, which keeps an identity on the device and contacts nothing but your server. It costs them the backup, so a lost device is a lost identity. The exception is a link an admin marks as needing a Rift account, useful for a public one: a ban there holds against the person, not just one identity they can replace in a second. The server still never sees their email.