Skip to content

Configuration reference

Every setting in the .env file of a Docker Compose installation, what it does, and how to apply a change.

Where settings live

A Docker Compose installation keeps every setting in the .env file in the installation folder. The installer writes it from .env.example and fills in fresh secrets. Keep it private: it is created readable by its owner only (mode 600).

On Kubernetes, the same settings go under env in your values file, and secrets in the secrets Secret. See Kubernetes secrets.

Apply a change

Edit .env, then recreate the VitalRix container:

Apply settings
nano .env            # or any editor
./vitalrix restart   # recreates the VitalRix container with the new settings
./vitalrix status    # check that every service is healthy again

Changes to VITALRIX_DOMAIN, VITALRIX_TLS or the ports also affect the HTTPS proxy: run ./vitalrix start after the restart so Docker Compose recreates it too.

Release

Release settings
SettingDefaultWhat it does
VITALRIX_VERSIONThe bundle's versionThe release that runs. Change it with ./vitalrix upgrade rather than by hand.
VITALRIX_IMAGEdownloads.vitalrix.com/vitalrixWhere the image comes from when the server is online. The offline bundle loads it from images/ instead. Point it at your own registry if you mirror the images.
VITALRIX_DOWNLOADS_URLhttps://downloads.vitalrix.comWhere ./vitalrix upgrade <version> fetches a release when the server is online.

Addresses

Address settings
SettingDefaultWhat it does
VITALRIX_DOMAINSet by the installerThe base domain. VitalRix serves monitor., api. and docs. under it.
HTTP_PORT80The HTTP port on the server.
HTTPS_PORT443The HTTPS port on the server.
VITALRIX_PUBLIC_PORTEmptySet it to the HTTPS port when that is not 443 (for example 8443), so links and emails include it. The installer sets it for you.

Certificates

TLS setting
SettingValueWhat it does
VITALRIX_TLSinternalThe default. A private certificate authority issues the certificates; trust it with ./vitalrix ca-cert.
An email addressLet's Encrypt certificates. The addresses must be reachable from the internet.
/certs/fullchain.pem /certs/privkey.pemYour own certificate for *.<domain>, placed in the certs folder.

See certificates for when to use each one.

Optional parts

Optional parts
SettingDefaultWhat it does
VITALRIX_DOCStrueSet to false to stop serving this documentation at docs.<domain>.

Secrets

The installer generates each of these with openssl. You do not need to change them.

Secrets
SettingWhat it protects
POSTGRES_PASSWORDThe database password.
JWT_ACCESS_SECRETSigns sign-in sessions.
INTERNAL_SECRETSigns requests between VitalRix services.
INTEGRATION_ENCRYPTION_KEYEncrypts stored integration credentials and webhook secrets. If you lose it, those must be entered again.
REVALIDATE_SECRETLets the CMS refresh published website pages.
PREVIEW_SECRETSigns website preview links.
METRICS_TOKENProtects the internal metrics endpoints.
ONCALL_LINK_SECRETSigns links in on-call notifications.

Email

Email is used for invitations, password resets and email alerts. Use your company's mail server. Without SMTP_HOST, no email is sent.

Email settings
SettingDefaultWhat it does
SMTP_HOSTEmptyYour mail server's host name.
SMTP_PORT587Its port.
SMTP_USEREmptyThe user name, if the server needs one.
SMTP_PASSWORDEmptyThe password, if the server needs one.
SMTP_FROMVitalRix <vitalrix@<domain>>The sender of every email.

Sign-in

Sign-in settings
SettingDefaultWhat it does
ALLOW_REGISTRATIONfalseOff: people join by invitation, through single sign-on with just-in-time membership, or through SCIM. Set to true to let anyone who can reach the sign-up page create an account.
GOOGLE_CLIENT_IDEmptyTurns on Sign in with Google with your own Google OAuth client. Needs internet access.
GOOGLE_CLIENT_SECRETEmptyThe secret of that client.

While sign-up is off, Sign in with Google works only for people who already have an account: it cannot create new ones. Use single sign-on with your identity provider if you want new members to be added when they first sign in.

Internet-connected features

Leave these empty in an air-gapped installation.

AI assistant settings
SettingDefaultWhat it does
ANTHROPIC_API_KEYEmptyAn Anthropic API key for the AI incident assistant.
ANTHROPIC_API_BASEEmptyThe address of a compatible model gateway inside your network, used instead of the public API.

The AI incident assistant is off while both are empty. Slack, PagerDuty, Opsgenie, Jira, GitHub and the AWS and Google Cloud integrations are set up in the app, not here, and need the server to reach those services.

Checks and logging

Checks and logging settings
SettingDefaultWhat it does
CHECK_REGIONlocalThe name of the region checks from this server report as.
LOG_LEVELinfoHow much detail VitalRix writes to its own logs.
  • Checks run from this server, so they reach the internal systems it can reach, including private addresses.
  • Checking public sites from other regions needs additional checkers. Ask VitalRix if you need them.

Something unclear or missing? Open VitalRix and use the in-app setup guides, or read Troubleshooting.