Skip to content

Configuration

The setup email links to the self-hosted bundle, published as both gridnms-selfhosted-bundle.tar.gz (Linux/macOS) and gridnms-selfhosted-bundle.zip (Windows).

docker-compose.selfhosted.yml # the stack definition
.env.selfhosted.example # config template
license-public.pem # GridNMS license verify key (public, ships with the bundle)
install.sh # one-command installer (Linux/macOS)
install.ps1 # one-command installer (Windows / PowerShell)
SETUP.md # setup guide

Unpack it into a working directory, e.g. /opt/gridnms.

Terminal window
cp .env.selfhosted.example .env

Edit .env and set the required values. The stack refuses to start until these are filled — there are intentionally no defaults for secrets:

VariableWhat to set
GRIDNMS_DBPASSWDA strong Postgres password
GRIDNMS_SECRETA strong session secret — openssl rand -hex 32
GRIDNMS_COLLECTOR_AUTO_JOIN_SECRETA shared secret your collectors present to auto-join — openssl rand -hex 24
GRIDNMS_LICENSE_KEYThe license key from your approval email

The cloud platform URL is already defaulted correctly:

GRIDNMS_PLATFORM_URL=https://platform.gridnms.io

license-public.pem ships with the bundle and is the same for every customer — leave it next to the compose file. It is a public, verify-only key; it can never mint or grant a license, only check the signature on the one the platform issues to you.

VariablePurpose
APP_URL / APP_PORTWhere the UI is reached — also the WebAuthn / passkey origin
GRIDNMS_DIAGNOSTICS_OPT_IN=1Share anonymous diagnostics
LOGSERVER_TOKEN, CLICKHOUSE_PASSWORDEnable the --profile logs ClickHouse log tier
R2_ENDPOINT, R2_ACCESS_KEY_ID, R2_SECRET_ACCESS_KEYLet the updater auto-pull server updates — see Updates
Terminal window
./install.sh

The installer generates your secrets, asks for your license key, and prompts for the URL users will reach the instance at (defaulting to the host’s primary IP). It then brings the stack up and waits for health. The equivalent manual command (images must already be loaded — install.sh does that):

Terminal window
docker compose -f docker-compose.selfhosted.yml up -d
# add --profile logs to also start the optional log-management tier

When healthy (<host> = the APP_URL you set):

UI + API: http://<host>:3001 (one port — the server serves the SPA)
Health: http://<host>:3001/health → {"status":"ok"}

Open the UI and complete the first-run setup wizard.