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.

Full installation guide →


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

DataVisible to the server operator
Channel and direct messagesNo — encrypted on the device, opened only by members
Voice and videoNo — 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
AttachmentsNo — stored as ciphertext
Who is a member, and of which channelsYes
That a message was sent, when, and by whomYes
Calls between two membersYes — who called whom, when, whether it was answered and how long it lasted. Never what was said
Reactions, pins and poll votesYes — 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 messagesYes — 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 needWhy
Docker with the Compose pluginEverything runs in containers
A domain pointing at the machineA certificate is issued for it automatically
Ports 80 and 443 reachableThe certificate, and everything clients talk to — unless you already run a reverse proxy, which can keep them
UDP 7882 and TCP 7881 reachableCall audio and video, which cannot go through a proxy — needed either way
About 4 GB of RAM and 2 CPUsTen 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:

JobWhere it is covered
Backups, and testing that they restoreBackups — nothing here does this for you
Keeping the host and Docker patchedYours, as with anything you run
Giving it a big enough machineSizing the machine — measured, per member and per message
Opening the two voice portsInstallation
Applying updatesUpdating — one button in the console
Keeping the domainIt is part of every member's identity, not just an address

Where things live

ThingWhere
Your serverYour machine. Members, channels, messages, attachments.
Rift accountsA shared service, used only to sign in and to hold an encrypted backup of your keys.
The public directoryOptional. 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.