Skip to content

Run the server

Install Nik for a team, keep it safe and backed up, bring it back after a failure, and upgrade it.

You need

A shell on the host that runs Nik, and an account with the Admin role for the screens under Platform settings › System.

  • Install in production


    Docker or Podman, rootless, behind a proxy, your own TLS certificate, start on boot. The services and their ports.

  • Configuration


    The .env file, what to set before the first start, and the system settings an administrator changes in the app.

  • Keys and secrets


    The secrets as files, the store key, changing a key with deploy/secrets.sh, and what to keep off the server.

  • Backups and restore


    The backups Nik takes and tests by itself, the copy to a second host, restoring, and the export of content.

  • Recovery and standby


    Go back to any moment, keep a standby host, promote it when the first host dies. What is lost and how long it takes.

  • Upgrades


    How an upgrade runs (snapshot, rehearsal, migrations), how to roll back, and what each release asks of you.

  • Health and audit


    The Health page, workers, storage, Prometheus metrics, the audit log chain, syslog forwarding, and Stop all.

  • Install without containers


    A manual install on RHEL 8 or 9 with PostgreSQL, systemd and nginx.

The short version

git clone https://github.com/n36l3c7/Nik.git && cd Nik
deploy/init-env.sh                 # .env and the secrets, each in a file of ./secrets
docker compose up -d --build       # or: podman compose up -d --build

Then, in this order:

  1. Open https://<host>:8443 and create the first account at once: it becomes the admin. See First sign-in.
  2. Copy the ./secrets directory somewhere off the server (Keys and secrets).
  3. Set a backup passphrase and a second host in Platform settings › System › Backup (Backups).
  4. Turn on Administrators must have a second factor and send the audit log to syslog (Hardening checklist).