Install
Installing Vaubaan Gateway means running one Docker image, built from the repository, behind a TLS proxy, with one volume for its database and a configuration that names its public URL, its master key and who administers it.
Pre-release images. Releases are published at ghcr.io/vaubaan/gateway with a signed provenance attestation; both ways below pull a released image, or build it from the sources. How to pull and verify a released image: verify an image.
Two ways
- Docker Compose on a host you run, with the bundled Caddy proxy that obtains the TLS certificate.
- Railway: one service built from the repository's Dockerfile, one volume, GitHub sign-in.
Running the image with your own reverse proxy: run behind your own proxy.
Requirements
- A host with Docker and Compose v2, or a Railway project. One process and one SQLite file: no database server, no high availability.
- A DNS name pointing at the host; its
https://origin is the instance's public URL. With Compose, ports 80 and 443 must be reachable so the bundled proxy can obtain the certificate. - Nothing to generate for the encryption key with Compose: the instance writes it at its first start and the setup hands it to you. On Railway you generate it yourself (
npm run gen-master-key, needs Node.js). - A sign-in provider: an OpenID Connect client at your identity provider, a GitHub OAuth App, or none at all with sign-in accounts kept by the instance (email, password and a second factor). Live instances sign in through GitHub, Google and Entra ID; Keycloak has never been run (known limitations). You can add it from the interface after the first sign-in, or put it in the configuration.
- An admin rule: the email addresses (
VAUBAAN_ADMIN_EMAILS) or the identity provider group (VAUBAAN_ADMIN_GROUP) of the administrators.
Minimum configuration
| Key | Variable | What |
|---|---|---|
public_url | VAUBAAN_PUBLIC_URL | https:// and the instance's host |
store.path | VAUBAAN_STORE_PATH | the database file on the volume, such as /data/gateway.db |
encryption.master_key | VAUBAAN_MASTER_KEY_FILE | /keys/master.key, written at the first start with VAUBAAN_MASTER_KEY_GENERATE=1; or the key itself in VAUBAAN_MASTER_KEY |
admin.emails or admin.group | VAUBAAN_ADMIN_EMAILS, VAUBAAN_ADMIN_GROUP | who administers the instance |
bootstrap_token | VAUBAAN_BOOTSTRAP_TOKEN | 32 characters or more, until a sign-in provider is set |
Anything missing stops the container with exit code 78 and a message naming every key:
Invalid instance configuration (1 problem):
- encryption.master_key: missing required key (env: VAUBAAN_MASTER_KEY or VAUBAAN_MASTER_KEY_FILE)
Every key: configuration keys.
First sign-in
- Open
https://your-domain/loginand follow the bootstrap link; paste the bootstrap token. When the instance generated its encryption key, the setup's first step is Your encryption key: download it and keep it outside the host before anything else. - On Settings → Administration → Sign-in, add a sign-in provider — your company's OpenID Connect directory (redirect URI
https://your-domain/auth/callback/your-sign-in-id), GitHub, or Add sign-in accounts for accounts the instance keeps itself — then "Test". - Sign in through it as a person matching the admin rule. That first sign-in revokes the bootstrap token for good.
With a sign-in provider in the configuration (idp.* or sign_in.<id>.*), no bootstrap token is needed: sign in directly. A sign-in provider where anyone can open an account (GitHub, personal Google or Microsoft) needs allowed email domains or "invitation only".
Then: connect accounts and create a first mission.
Check what runs
curl -s https://your-domain/healthz answers {"status":"ok",...} with the version and the commit; the footer of every page shows them too. Then take the instance through a working day: check your instance.
In this section
- Install with Docker Compose
- Install on Railway
- Run behind your own proxy
- Verify an image
- Install with your coding agent
- Check your instance
Last changed 2026-12-02. This page as Markdown: /docs/install.md