Documentation menu

Docs › Reference

Environment variables

Settings for self-hosted installations, in .env next to docker-compose.yml. Apply changes with docker compose up -d.

Required

Variable Description
DEPMAP_DOMAIN Public DNS name of the server, without https://.
POSTGRES_PASSWORD Database owner password (migrations, backups). Filled by gen-secrets.
APP_DB_PASSWORD Password of the restricted runtime database role used by the app. Filled by gen-secrets.
BETTER_AUTH_SECRET Signs sessions and encrypts two-factor secrets. Filled by gen-secrets. Do not change it once users have enabled 2FA: their authenticator codes would stop working (and everyone is signed out).
CRON_SECRET Enables scheduled integration syncs and data retention. Filled by gen-secrets.
Variable Description
SMTP_URL Outgoing email, e.g. smtps://user:password@smtp.example.com:465. When set, email verification is required.
MAIL_FROM Sender, e.g. InfraMole <inframole@example.com>. Required with SMTP_URL.
CREDENTIALS_ENCRYPTION_KEY Encrypts stored integration tokens and single sign-on secrets (AES-256-GCM); required for single sign-on and integrations. Filled by gen-secrets. Back it up: without it stored tokens and single sign-on connections must be entered again.
BACKUP_AGE_RECIPIENT age public key (age1…) to encrypt nightly backups.
AGENT_DOWNLOAD_BASE_URL Where the install commands download the agent. Default: the official releases (https://github.com/InfraMole/agent/releases/latest/download).

Optional

Variable Default Description
EDITION community community or business.
DEPMAP_LICENSE_KEY — Business licence key (dml1.…), verified offline.
DEPMAP_REDIRECT_HOSTS — Extra names (space-separated) redirected to DEPMAP_DOMAIN, e.g. www.inframole.example.com.
CADDY_TLS empty (Let's Encrypt) tls internal for a local trial with Caddy's own certificate authority.
HTTP_PORT, HTTPS_PORT 80, 443 Host ports. Let's Encrypt needs 80/443.
GOOGLE_CLIENT_ID, GOOGLE_CLIENT_SECRET — Sign in with Google.
MICROSOFT_CLIENT_ID, MICROSOFT_CLIENT_SECRET — Sign in with Microsoft.
MICROSOFT_TENANT_ID organizations organizations, common or your tenant id.
SSO_TRUSTED_DOMAINS — Email domains you vouch for, comma-separated: single sign-on connections for them need no DNS proof.
SSO_TRUSTED_ORIGINS — Identity providers and directories on your network or without TLS, e.g. https://idp.corp.lan,ldaps://dc01.corp.lan:636. Otherwise single sign-on only reaches public HTTPS / LDAPS servers.
FEEDBACK_EMAIL — Shows a Feedback button; messages are emailed here (needs SMTP).
SIGNUP open closed makes the installation invite-only: only the first account and people you invite can sign up.
DEMO_MODE false true builds an example workspace (Northwind) for the demo account demo@inframole.com, rebuilt every DEMO_RESET_HOURS. Without DEMO_PASSWORD it is a public, read-only demo at /demo.
DEMO_ROLE VIEWER Private demo: the demo account's role (VIEWER, MEMBER, ADMIN). Above VIEWER requires DEMO_PASSWORD. Only with DEMO_MODE=true.
DEMO_PASSWORD — Private demo: the demo account's own password (12+ characters). Set = no public /demo page.
DEMO_RESET_HOURS 24 How often the demo workspace is rebuilt from the example data (hours).
INTEGRATIONS_PRIVATE_NETWORKS — Private networks the Proxmox, TrueNAS and Synology integrations may reach, e.g. 192.168.1.0/24,10.0.10.0/24 (Local sources). Loopback and link-local addresses are always refused.
UMAMI_SCRIPT_URL, UMAMI_WEBSITE_ID, UMAMI_DOMAINS — Optional Umami analytics of the public pages (website, docs, legal) when the installation is a public site: the tracker URL (https://…/script.js), the website ID and, optionally, the hostnames to count (inframole.com). Pages inside workspaces and shared maps are never counted; query strings and fragments are dropped; Do Not Track is respected. Empty = no analytics.
UPDATE_CHECK false (true in the bundle's .env.example since 0.27.0) Tell admins when a newer server or agent release exists — Settings, sidebar, weekly summary (one anonymous request per product to GitHub per day; nothing is sent).
CRON_EVERY_SECONDS 900 How often scheduled jobs run.
BACKUP_KEEP_DAYS 14 Days of nightly backups kept in ./backups.
BACKUP_S3_ENDPOINT, BACKUP_S3_REGION, BACKUP_S3_BUCKET, BACKUP_S3_PREFIX, BACKUP_S3_ACCESS_KEY_ID, BACKUP_S3_SECRET_ACCESS_KEY — Upload every encrypted backup to S3-compatible storage and prune it there after BACKUP_KEEP_DAYS (Backups). Needs BACKUP_AGE_RECIPIENT.
INFRAMOLE_VERSION the bundle's version Image tag to run. Change it to update or roll back.
CREDENTIALS_KEY_VERSION, CREDENTIALS_ENCRYPTION_KEY_PREVIOUS 1, — Only while rotating the credentials key.

Rotating the credentials key

  1. Move the current key to CREDENTIALS_ENCRYPTION_KEY_PREVIOUS.
  2. Put a new key in CREDENTIALS_ENCRYPTION_KEY (openssl rand -base64 32) and increase CREDENTIALS_KEY_VERSION.
  3. docker compose up -d. Each integration is re-encrypted with the new key on its next sync.
  4. When every integration has synced once, remove CREDENTIALS_ENCRYPTION_KEY_PREVIOUS.