Run a server in ten minutes
This starts a complete Drusite server on your own computer with Docker Compose: the server, PostgreSQL with pgvector, and SeaweedFS as the object store. It’s for trying Drusite out. For a server other people use, carry on with Docker Compose or Kubernetes with Helm afterwards.
You need Docker with Compose v2, git, openssl, and port 8080 free.
1. Get the Compose files
git clone --depth 1 https://github.com/pranavajk1/drusite.git
cd drusite/deploy/compose
The folder holds compose.yaml, the server’s config drusite.toml, setup.sh, and
initdb/, which prepares the database on its first start.
2. Make the secrets
./setup.sh
It writes secrets/, once: passwords for PostgreSQL and the object store, the database URL, and
the master key, which wraps the key of every workspace on the server. Back secrets/ up.
Without master_key, the notes on this server can’t be read by anyone.
3. Start it
docker compose up -d
The first start pulls the images, creates the database and the bucket, and runs the migrations. Check that it’s ready:
curl http://localhost:8080/readyz
It answers {"status":"ok","checks":{"database":"ok","storage":"ok","keys":"ok"}}.
4. Make your account
Sign-up is off, so make the first account from the server:
docker compose run --rm drusite account create you@example.com --name "Your Name"
It prints a one-time sign-in link, good for 24 hours:
account 01a22a5e-…
one-time sign-in link, valid for 1440 minutes (give it only to the account's owner):
http://localhost:8080/auth/recover#token=…
Open it in a browser and choose Sign in. You land on your account page: add a passkey or set a password there, because the link works only once.
5. Open Drusite
- In the browser: go to
http://localhost:8080. The web app is the full app. - In an app: install Drusite, choose to sign in to a server, and give it
http://localhost:8080.
What next
- To reach it from other devices, it needs a domain and HTTPS: set
public_urlindrusite.tomland put a reverse proxy in front. Plainhttpworks only forlocalhost. - Sign-in methods and accounts decide who else gets in.
- Stop it with
docker compose down. Your notes stay in thepostgresandseaweedfsvolumes;docker compose down -vdeletes them.