Office docsGet started

Install on your server

One script installs everything. It takes about two minutes and finishes by printing the address to open and a setup code.

IT admins10 min

Decide how it is reached first

The hostname is written into the installation on first boot and cannot be changed. Moving to another name means discarding the installation and its data. Read Make it reachable before you run the installer.

Before you start

  • Docker and Docker Compose v2 are installed, and your user can reach the Docker daemon.
  • The server has 4 GB of memory and about 8 GB of free disk.
  • You have chosen how people will reach the installation.
  • If you want backups, the destination and key location are ready. Backups can only be turned on at first install. See Back up and restore.

Choose the bundle for your server

Run uname -m on the server and take the matching bundle.

bash
$ uname -m
x86_64
uname -mBundle
x86_64…-amd64.tar.gz. Nearly every rented server.
aarch64…-arm64.tar.gz. ARM servers.

A bundle for the wrong architecture is safe to try. The installer compares the image with the host and stops before anything starts, naming the bundle you need.

Run the installer

Extract the bundle and change into its directory.

bash
$ tar xzf kernalworks-office-<release>-amd64.tar.gz
$ cd kernalworks-office-<release>-amd64

Run install.sh with the reachability option you chose and your email address.

$ ./install.sh --tailscale --admin you@example.com

--admin needs an address with a dotted domain, so admin@localhost is refused. --alert-webhook sends alerts to an endpoint you run. Without it, the installation comes up and reports that alerting is not configured. ./install.sh --help lists every option.

The installer generates a database password, loads the image, starts the installation and waits while the first boot sets up the database and starts the three apps. When it finishes, it prints the address and a setup code.

output
Serving.

  1. Open   https://office.example.com/
  2. Present this setup code, and choose an email and a password:

       <setup code>

     It is single-use, expires in fifteen minutes, and creates the administrator.
The setup code

The code works once and expires after 15 minutes. It is the only way to create the first administrator. If it expires, run the installer again or get a new setup code.

Open the printed address in a browser, or enter it on the desktop app's connect screen. Then create the first administrator.

Run it again safely

Every provisioning step is recorded and can be repeated. If a run stops partway, fix the cause and run the same command again. It continues from where it stopped and prints a fresh setup code.

The installer writes your settings to .env in the bundle directory. Keep that file. Later runs and restarts read it.

Use your own identity provider

A sovereign installation signs people in through your OpenID Connect provider. It needs a bundle built for the sovereign profile and two files: the provider settings, and the certificate authority that signs the provider's TLS certificate.

json
{
  "contractVersion": 1,
  "issuer": "https://sso.example.com",
  "discoveryUrl": "https://sso.example.com/.well-known/openid-configuration",
  "authorizationEndpoint": "https://sso.example.com/authorize",
  "tokenEndpoint": "https://sso.example.com/token",
  "jwksUri": "https://sso.example.com/keys",
  "clientId": "kernalworks-office",
  "clientSecret": "…",
  "caFile": "/run/kernalworks/oidc-ca.pem"
}

The file holds the client secret, so set its mode to 0600. The installer refuses a file that group or others can read. caFile must be exactly /run/kernalworks/oidc-ca.pem, the path where the installer mounts the authority. Add your reachability option to the command as usual.

bash
$ chmod 600 /secure/oidc-input.json
$ ./install.sh --admin you@example.com --oidc /secure/oidc-input.json --oidc-ca /secure/issuer-ca.pem

The installer refuses --oidc with an assisted bundle, and a sovereign bundle without --oidc. It checks the settings file before provisioning starts. There is no setup code. Each person must be enrolled before they can sign in. See Admit people from your identity provider.

If the installer stops

The installer saysWhat to do
docker is not installedInstall Docker Engine, then run the installer again.
this docker has no 'compose' subcommandInstall Docker Compose v2.
cannot talk to the docker daemonStart Docker, or add your user to the docker group.
this bundle is for … and this host is …Download the bundle the message names. Nothing was started.
how should office.example.com be reached?Add --tailscale, --proxy or --cloudflare. Nothing was written.
provisioning did not finishThe installer prints the last lines of the log. Fix the cause and run it again.

Read the log

The installation log carries the output of the control plane and of each app, one line at a time, with passwords, tokens and similar values removed. Check it first when something fails.

bash
$ docker compose -p kernalworks-office -f compose.yaml logs office

Run Docker Compose commands from the bundle directory. kernalworks-office is the installer's default project name. If the installer printed a different form, for example with an extra -f file, use that form in the commands on these pages.