Skip to the content
Vaubaan Gateway
Docs menu

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

KeyVariableWhat
public_urlVAUBAAN_PUBLIC_URLhttps:// and the instance's host
store.pathVAUBAAN_STORE_PATHthe database file on the volume, such as /data/gateway.db
encryption.master_keyVAUBAAN_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.groupVAUBAAN_ADMIN_EMAILS, VAUBAAN_ADMIN_GROUPwho administers the instance
bootstrap_tokenVAUBAAN_BOOTSTRAP_TOKEN32 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

  1. Open https://your-domain/login and 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.
  2. 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".
  3. 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

Last changed 2026-12-02. This page as Markdown: /docs/install.md