Installing Structam

The ways to install Structam (Docker Compose, the server installer with systemd, Kubernetes), what KazLabs provides, and the first steps after installing.

On this page

Status. Tested: the single-node and HA compose files brought up with Docker Compose 5.5 on Docker Desktop (arm64) and signed in through Caddy; the server installer run for real in an Ubuntu 24.04 systemd container (arm64) against an external PostgreSQL 18, re-run (nothing restarted, the secret key kept), with --role worker and with --uninstall; installer dry runs on Debian 13 and Rocky Linux 9 containers; the systemd units verified with systemd-analyze verify. Not yet run: install.sh --local-postgres, an install on a real server or a RHEL-family host with systemd, and the Kubernetes manifests against a cluster (they were rendered with kubectl kustomize only).

Structam is one binary, structam, with the role as its first argument (serve, worker, all, migrate and the admin commands), and one PostgreSQL database. Everything it keeps is in the database; the binary writes nothing to disk.

What KazLabs provides

There is no public download, image registry or install script for the server. KazLabs provides the Structam container image and the release archive for your installation; the archive holds the structam binary and the deploy/ folder these pages refer to (compose files, the server installer, systemd units, the Caddy configuration and the Kubernetes manifests). Talk to us to arrange it.

The one-line commands on the onboarding page are different: they are served by your own Structam server, to install the agent on your hosts.

Pick a way to install

WayForFilesGuide
Docker Compose, one hostevaluation and small installationsdeploy/compose/compose.yamlDocker Compose
Server installera Linux host (Debian, Ubuntu, RHEL family) with systemd, no containersdeploy/install/install.sh, deploy/systemd/Server installer
Kubernetesan existing cluster with a PostgreSQL operator or a managed databasedeploy/kubernetes/Kubernetes
Docker Compose, HA topologytrying failover and drains on one machinedeploy/compose/compose.ha.yamlDocker Compose

Read the requirements first. Every setting is an environment variable (configuration reference).

After installing

  1. Sign in and change the first administrator's password; set up TOTP under Account (first sign-in).
  2. Licence: without one, Structam runs in evaluation mode with every feature and up to 25 enrolled agents (licensing).
  3. NetBox: connect it on Integrations → NetBox (NetBox). NetBox is the source of truth for hosts; without it every agent's host appears as unmatched.
  4. Agents: Add hosts makes a join token and the one-line install command (onboarding).
  5. Back up the database and, separately, the secret key (backup and restore).
  6. Run structam doctor on a node whenever something looks wrong (troubleshooting).

Checking an installation

structam version        # the binary's version, build channel and platform
structam doctor         # configuration, secret key, database, migrations, public URL and certificate, integrations
structam healthcheck    # GETs this node's /readyz (the image has no shell or curl)

structam doctor changes nothing. Run it with the node's environment: on an installed server set -a; . /etc/structam/structam.env; set +a; runuser -u structam -- structam doctor, with compose docker compose exec app structam doctor.

Questions the docs do not answer?

Ask the people who build Structam. Installation media and licences come from KazLabs.

Talk to us