Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

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.

  1. Get it running. Docker Compose on one machine, or Kubernetes with Helm. Both start from the same image.
  2. Bring your own data services, or use the ones Compose starts: PostgreSQL with pgvector and an S3-compatible object store.
  3. Protect the keys. The master key, backups and restore. Read this one before you put real notes on the server.
  4. Put it on HTTPS behind a reverse proxy.
  5. Decide who gets in. Sign-in methods, single sign-on with OIDC, accounts and invitations, and email for magic links and invites.
  6. 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.
  7. Run it. End-to-end encryption, the admin’s view, logs, metrics and health checks, upgrading and releases. When something breaks, troubleshooting.

Requirements

NeededNotes
A machineamd64 or arm64, 1 CPU, 512 MB of RAM for the server itselfThe 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 runtimeDocker with Compose v2, Podman, or KubernetesOr build the binary yourself: it’s one Rust program.
PostgreSQL16 or newer, with pgvector 0.8 or newerThe server refuses to start on anything older and says why. Details.
An object storeAnything that speaks S3SeaweedFS, MinIO, Garage, Ceph, Cloudflare R2, AWS S3. Details.
A master keyMade with drusite-server keys generate, or kept in OpenBao or Vault TransitDetails.
A domain and HTTPSFor anything beyond your own machinePasskeys need a domain name, not an IP address. http://localhost works for trying it out.
A sign-in methodAt least onePasskeys 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

WhereWhat
PostgreSQLAccounts, 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 storeAttachments and meeting recordings, each sealed with its workspace’s key.
The key sourceThe 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

ImageWhat it is
ghcr.io/pranavajk1/drusite-serverThe server, with the web app built in. amd64 and arm64, distroless, no shell, running as an unprivileged user (65532).
ghcr.io/pranavajk1/drusite-agentThe agent device.
oci://ghcr.io/pranavajk1/charts/drusiteThe 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.