Every environment variable a MinusX deployment reads — defaults, scope, and when you need it
All configuration is via environment variables, read from frontend/.env (which both docker compose and the installer pass through via env_file). Almost everything is runtime — set it, restart the container, done. The handful of build-time variables that require a rebuild are listed at the bottom.
MinusX stores documents (questions, dashboards, users, …) in an embedded Postgres-compatible database by default; point it at external Postgres for hosted/multi-node setups.
Variable
Default
Purpose
DB_TYPE
pglite
pglite (embedded, zero-config) or postgres (external).
DATABASE_URL
—
Postgres connection string; required when DB_TYPE=postgres.
PGLITE_DATA_DIR
derived
On-disk directory for PGLite data (the Docker image sets /app/data/pglite).
Model providers, keys, and assignments are configured in the app (setup wizard / Settings → Models) — there are no LLM model env vars. See LLM Providers.
Variable
Default
Purpose
MINUSX_GATEWAY_URL
https://llm.minusx.ai/v1
Base URL of the managed MinusX gateway (the default provider); override for staging gateways.
MAX_LLM_CONCURRENCY
unlimited
Cap on concurrent in-flight LLM requests.
BOOT_WARM_CHAT
true
Warm the chat runtime at boot so the first message isn't a cold start. false to disable.
Load a custom instrumentation module at boot (deployment-specific extensions).
LANDING_HTML
—
Replace the landing page with custom HTML.
DEFAULT_DB_TYPE
duckdb
Default dialect preselected for new data connections.
E2E_RUNTIME_SECRET
—
Test-harness opt-in; leave unset in production.
Variables prefixed DAB_*, QA_*, and E2E_* belong to the benchmark and test harnesses — they have no effect on a normal deployment and are intentionally undocumented here.
Everything above is read at container runtime. These are the exceptions — inlined into the JavaScript bundle at npm run build, so changing them on a prebuilt image has no effect; you'd need to build from source:
Variable
Purpose
NEXT_PUBLIC_DEFAULT_ANALYTICS_CONFIG
Default analytics config baked into official images. Runtime ANALYTICS_CONFIG / MX_DISABLE_TELEMETRY always override it.