Self-hosting: overview and requirements
Drusite’s apps sync through a server you run. This section takes you from nothing to a server other people can rely on, one step at a time. Each page stands on its own, so skip what you already have.
- Get it running. Docker Compose on one machine, or Kubernetes with Helm. Both start from the same image.
- Bring your own data services, or use the ones Compose starts: PostgreSQL with pgvector and an S3-compatible object store.
- Protect the keys. The master key, backups and restore. Read this one before you put real notes on the server.
- Put it on HTTPS behind a reverse proxy.
- Decide who gets in. Sign-in methods, single sign-on with OIDC, accounts and invitations, and email for magic links and invites.
- Turn on what you want, all optional: AI providers, search by meaning, Ask your notes, meeting transcription, agents, publish to web and the web app.
- Run it. End-to-end encryption, the admin’s view, logs, metrics and health checks, upgrading and releases. When something breaks, troubleshooting.
Requirements
| Needed | Notes | |
|---|---|---|
| A machine | amd64 or arm64, 1 CPU, 512 MB of RAM for the server itself | The server holds no state of its own, so you can run more than one. The Helm chart asks for 50m CPU and 64 MiB, and limits memory to 512 MiB. |
| A container runtime | Docker with Compose v2, Podman, or Kubernetes | Or build the binary yourself: it’s one Rust program. |
| PostgreSQL | 16 or newer, with pgvector 0.8 or newer | The server refuses to start on anything older and says why. Details. |
| An object store | Anything that speaks S3 | SeaweedFS, MinIO, Garage, Ceph, Cloudflare R2, AWS S3. Details. |
| A master key | Made with drusite-server keys generate, or kept in OpenBao or Vault Transit | Details. |
| A domain and HTTPS | For anything beyond your own machine | Passkeys need a domain name, not an IP address. http://localhost works for trying it out. |
| A sign-in method | At least one | Passkeys and passwords need nothing else. Magic links need email. OIDC needs an identity provider. |
Optional, depending on what you turn on:
- An SMTP server, for magic links and emailed invitations.
- AI models, for search by meaning, Ask and meeting notes: any OpenAI-compatible server (LiteLLM, Ollama, vLLM, LocalAI, llama.cpp, LM Studio), or a vendor’s API (Anthropic, OpenAI, Google, Mistral, OpenRouter). Drusite works fully without them.
- An OTLP collector, for traces, metrics and logs.
What the server stores, and where
| Where | What |
|---|---|
| PostgreSQL | Accounts, sign-ins, workspaces and members, and every page’s document and history, sealed with its workspace’s key. Search words and vectors, unless search is off. |
| The object store | Attachments and meeting recordings, each sealed with its workspace’s key. |
| The key source | The master key, which wraps each workspace’s key. Without it, a standard workspace’s data can’t be read, by you or anyone. |
In an end-to-end encrypted workspace the documents and files are sealed on the members’ devices instead, and no key on the server opens them.
The images
| Image | What it is |
|---|---|
ghcr.io/pranavajk1/drusite-server | The server, with the web app built in. amd64 and arm64, distroless, no shell, running as an unprivileged user (65532). |
ghcr.io/pranavajk1/drusite-agent | The agent device. |
oci://ghcr.io/pranavajk1/charts/drusite | The Helm chart. |
Each release is tagged with its version (1.0.0). A release also moves 1.0, 1 and latest
to it; a pre-release gets only its own tag. Pin 1 to get every 1.x release as you restart, or a
full version to choose when to upgrade. Releases and update channels says how to
check the signatures.