Install with Docker Compose
Install VitalRix on one Linux server with the installer, set up DNS and certificates, sign in, and run it day to day with the vitalrix command.
1. Check the server
VitalRix needs a 64-bit Linux server (x86_64 or arm64) with Docker Engine 24 or later, Docker Compose v2, openssl, ports 80 and 443 free, and for a small installation 8 CPUs, 16 GB of memory and 200 GB of disk. These commands check each one.
uname -mx86_64If not: aarch64 means an ARM server: use the arm64 bundle below. Anything else is not supported.
docker --versionDocker version 27.5.1, build 9f9e405If not: docker: command not found: install Docker with curl -fsSL https://get.docker.com | sudo sh, then run sudo usermod -aG docker $USER, sign out and back in, and check again.
docker compose versionDocker Compose version v2.33.0If not: docker: 'compose' is not a docker command: install the Compose plugin (sudo apt-get install docker-compose-plugin on Debian and Ubuntu). The old docker-compose v1 is not enough.
docker run --rm hello-world | grep 'Hello from Docker'Hello from Docker!If not: permission denied while trying to connect to the Docker daemon socket: your user is not in the docker group (see above), or prefix the installer commands with sudo.
openssl versionOpenSSL 3.0.13 30 Jan 2024If not: Install it with sudo apt-get install openssl (or sudo dnf install openssl).
free -g | grep MemMem: 15 2 10 0 3 13If not: The first number is the memory in GB. Under 16 the installer warns but continues; under 8 VitalRix will not run well.
df -h / | tail -1/dev/sda1 200G 12G 188G 6% /If not: The fourth column is the free disk. Plan for 200 GB or more; telemetry grows with your traffic.
sudo ss -ltn '( sport = :80 or sport = :443 )'State Recv-Q Send-Q Local Address:Port Peer Address:Port ProcessIf not: Any line under the header means another program (often nginx or Apache) already uses port 80 or 443. Stop it, or install on other ports with --http-port and --https-port.
2. Download VitalRix
Pick one of the two. Make a folder for VitalRix first; this page uses /opt/vitalrix.
sudo mkdir -p /opt/vitalrix && sudo chown $USER /opt/vitalrix && cd /opt/vitalrix(nothing: no output means it worked)A. The server has internet access
curl -fLO https://downloads.vitalrix.com/onprem/vitalrix-onprem-latest.tar.gz % Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 19753 100 19753 0 0 98765 0 --:--:-- --:--:-- --:--:-- 98765If not: Could not resolve host: the server has no internet access. Use the offline bundle (B).
curl -fLO https://downloads.vitalrix.com/onprem/vitalrix-onprem-latest.tar.gz.sha256
sha256sum -c vitalrix-onprem-latest.tar.gz.sha256vitalrix-onprem-latest.tar.gz: OKIf not: FAILED: the download is damaged. Delete it and download again.
B. The server has no internet access (offline bundle)
arm64 instead of amd64 in both names if uname -m said aarch64.curl -fLO https://downloads.vitalrix.com/onprem/vitalrix-onprem-latest-amd64.tar.gz
curl -fLO https://downloads.vitalrix.com/onprem/vitalrix-onprem-latest-amd64.tar.gz.sha256
shasum -a 256 -c vitalrix-onprem-latest-amd64.tar.gz.sha256vitalrix-onprem-latest-amd64.tar.gz: OKscp vitalrix-onprem-latest-amd64.tar.gz admin@10.0.0.20:/opt/vitalrix/vitalrix-onprem-latest-amd64.tar.gz 100% 845MB 92.1MB/s 00:09If not: Copy it with whatever your network allows (a transfer server, approved removable media); it only has to end up in /opt/vitalrix on the server.
3. Unpack it
tar xzf vitalrix-onprem-latest*.tar.gz && cd vitalrix-onprem-*/ && pwd/opt/vitalrix/vitalrix-onprem-1.2.0If not: With the offline bundle the folder ends in -amd64 or -arm64; that is fine. Every command from here on runs in this folder.
lsCaddyfile IMAGE README.md VERSION certs docker-compose.yml helm install.sh license sites vitalrix website.caddyIf not: The offline bundle also has ARCH and an images folder; that is what makes it work without internet.
cat VERSION1.2.04. Add your license (optional)
Copy the license file VitalRix emailed you into the license folder. Without one, every product runs on Free limits; you can add it later with no reinstall.
cp ~/vitalrix.license license/vitalrix.license && ls -l license/total 4
-rw-r--r-- 1 admin admin 482 Oct 22 10:15 vitalrix.licenseIf not: No such file or directory: the license is somewhere else; use its real path. The license is one long line of text, so you can also paste it into a new file: nano license/vitalrix.license.
5. Run the installer
Give the base domain, the first administrator and your organization. The installer asks for a password for that administrator (12 or more characters; press Enter to have one generated and printed).
Loading images from the bundle (offline install)… and Loaded image: … instead, and nothing is downloaded../install.sh --domain vitalrix.acme.internal --admin-email you@acme.com --org "Acme"Certificate: 'internal' (self-signed, trust the CA once), an email for Let's Encrypt, or '/certs/fullchain.pem /certs/privkey.pem' [internal]:
Administrator password (12+ characters, empty: generate one):
Downloading images (online install)…
downloads.vitalrix.com/vitalrix:1.2.0
docker.io/library/postgres:16-alpine
docker.io/library/redis:7-alpine
docker.io/library/caddy:2-alpine
Starting VitalRix (the first start runs the database migrations and takes a few minutes)…
Container vitalrix-postgres-1 Healthy
Container vitalrix-redis-1 Healthy
Container vitalrix-vitalrix-1 Started
Container vitalrix-proxy-1 Started
{"time":"2026-10-22T10:21:36.815Z","service":"vitalrix","msg":"administrator created","email":"you@acme.com","organization":"Acme","url":"https://monitor.vitalrix.acme.internal"}
Sign in at https://monitor.vitalrix.acme.internal/login as you@acme.com.
Waiting for every service to be ready…
VitalRix is running.
Sign in: https://monitor.vitalrix.acme.internal as you@acme.com
API: https://api.vitalrix.acme.internal
Documentation: https://docs.vitalrix.acme.internal
DNS: point monitor.vitalrix.acme.internal, api.vitalrix.acme.internal and docs.vitalrix.acme.internal (or *.vitalrix.acme.internal) at this server.
Certificates: run ./vitalrix ca-cert and trust that file on your computers (or switch VITALRIX_TLS to your own certificate).
Next: configure email (SMTP_* in .env, then ./vitalrix restart) and back up: ./vitalrix backupIf not: See troubleshooting for each error the installer can print.
To install with no questions at all (for automation), give everything on the command line and the password in an environment variable:
VITALRIX_ADMIN_PASSWORD='a-long-password-here' ./install.sh \
--domain vitalrix.acme.internal --admin-email you@acme.com --org "Acme" \
--license license/vitalrix.license --tls internal --yes(the same as above, without the two questions)6. Check that everything is up
ok (or worker, which has no health page)../vitalrix status; echo exit=$?NAME IMAGE SERVICE STATUS
vitalrix-postgres-1 postgres:16-alpine postgres Up 4 minutes (healthy)
vitalrix-proxy-1 caddy:2-alpine proxy Up 4 minutes
vitalrix-redis-1 redis:7-alpine redis Up 4 minutes (healthy)
vitalrix-vitalrix-1 downloads.vitalrix.com/vitalrix:1.2.0 vitalrix Up 4 minutes (healthy)
ok api-gateway
ok auth-service
ok user-service
ok organization-service
… (one line per service, about 30)
worker cleanup-worker
worker monitor-worker
worker publishing-worker
ok app:monitor
ok app:docs
exit=0If not: A down line in the first few minutes is normal: services are still starting, so run it again in a minute. Still down after 10 minutes: ./vitalrix logs shows why. exit=1 means something is not healthy.
7. Point DNS at the server
Your computers reach VitalRix by name. Ask whoever runs your internal DNS for these records (a wildcard is simplest):
; one wildcard record (simplest)
*.vitalrix.acme.internal. IN A 10.0.0.20
; or one record per address
monitor.vitalrix.acme.internal. IN A 10.0.0.20
api.vitalrix.acme.internal. IN A 10.0.0.20
docs.vitalrix.acme.internal. IN A 10.0.0.20nslookup monitor.vitalrix.acme.internalName: monitor.vitalrix.acme.internal
Address: 10.0.0.20If not: NXDOMAIN or can't find: the record is not there yet. To try VitalRix before DNS is ready, add 10.0.0.20 monitor.vitalrix.acme.internal api.vitalrix.acme.internal docs.vitalrix.acme.internal as one line to /etc/hosts on your computer (on Windows, C:\Windows\System32\drivers\etc\hosts).
8. Trust the certificate
With the default internal certificates, VitalRix runs its own small certificate authority. Browsers show a warning until your computers trust it. (Using Let's Encrypt or your company's certificate instead? See certificates and skip this step.)
./vitalrix ca-certWrote vitalrix-ca.crt: add it to your computers' trusted certificate authorities.scp admin@10.0.0.20:/opt/vitalrix/vitalrix-onprem-1.2.0/vitalrix-ca.crt .vitalrix-ca.crt 100% 611 1.2MB/s 00:00sudo security add-trusted-cert -d -r trustRoot -k /Library/Keychains/System.keychain vitalrix-ca.crt(nothing: no output means it worked)sudo cp vitalrix-ca.crt /usr/local/share/ca-certificates/ && sudo update-ca-certificatesUpdating certificates in /etc/ssl/certs...
1 added, 0 removed; done.Import-Certificate -FilePath .\vitalrix-ca.crt -CertStoreLocation Cert:\LocalMachine\RootThumbprint Subject
---------- -------
3F2A… CN=Caddy Local Authority - 2026 ECC Rootcurl -sI https://monitor.vitalrix.acme.internal/ | head -2HTTP/2 307
location: /login?next=%2FIf not: SSL certificate problem: the certificate is not trusted yet (restart the browser or terminal after trusting it). Could not resolve host: DNS, step 7. Connection refused: a firewall blocks port 443 on the server.
9. Sign in
Open https://monitor.vitalrix.acme.internal, enter you@acme.com, click Continue with email, then the password you chose (or the one the installer printed: change it under your profile). Settings › Billing shows your license.
Next: set up email so invitations and alerts are sent, then take a first backup.
Troubleshooting the install
| The installer says | What to do |
|---|---|
install: Docker is not installed | Install Docker (step 1) and run the installer again. |
install: Docker Compose v2 is required | Install the Compose plugin (step 1). |
install: .env already exists: this server is installed. | VitalRix is already installed in this folder. Use ./vitalrix status, or ./vitalrix upgrade for a new version. To start over, rm .env (the data stays in the Docker volumes). |
install: the password needs at least 12 characters | Run it again with a longer password, or press Enter to have one generated. |
install: license file … not found | The path after --license is wrong. Check it with ls. |
install: this bundle is for amd64 servers, this one is arm64 | Download the offline bundle for the other architecture. |
install: could not download … Without internet access, install from the offline bundle | The server cannot reach the internet (or Docker Hub). Use the offline bundle (step 2B). |
VitalRix is installed but some services are still starting | Usually a slow first start: wait a few minutes and run ./vitalrix status. If it stays down, ./vitalrix logs. |
Warning: less than 16 GB of memory | Only a warning. Under 8 GB, add memory. |
permission denied while trying to connect to the Docker daemon socket | Add your user to the docker group (step 1) or run with sudo. |
If the installer stopped after creating the administrator but before your organization, run VITALRIX_ADMIN_PASSWORD='…' ./vitalrix create-admin --email you@acme.com --org "Acme" with the same email and password to finish. Still stuck? ./vitalrix support-bundle writes a file you can send to support@vitalrix.com.
Installer options
| Option | What it sets | Default |
|---|---|---|
--domain | The base domain. VitalRix uses monitor., api. and docs. under it. | Asked |
--admin-email | The first administrator's email address. | Asked (required) |
--org | The name of your organization. | Asked |
--license | Path to your license file. It is copied to license/vitalrix.license. | license/vitalrix.license if present, otherwise asked (empty means Free limits) |
--tls | internal, an email address for Let's Encrypt, or "/certs/fullchain.pem /certs/privkey.pem". | internal (asked) |
--https-port | The HTTPS port. Links include it when it is not 443. | 443 |
--http-port | The HTTP port. | 80 |
--yes | Do not ask for the password: generate one unless VITALRIX_ADMIN_PASSWORD is set. | Off |
Certificates
The VITALRIX_TLS setting in .env (or --tls) chooses where the HTTPS certificates come from.
| Value | What happens | When to use it |
|---|---|---|
internal | Caddy runs a private certificate authority and issues the certificates. Run ./vitalrix ca-cert and trust vitalrix-ca.crt on every computer and agent host that connects. | Internal networks without a company certificate. |
you@acme.com | Certificates from Let's Encrypt, renewed automatically. | Only when the addresses are reachable from the internet. |
/certs/fullchain.pem /certs/privkey.pem | Your company's certificate for *.<domain>, placed in the certs folder. | When your company issues its own certificates. |
cp fullchain.pem privkey.pem certs/
# in .env
VITALRIX_TLS=/certs/fullchain.pem /certs/privkey.pemAfter changing VITALRIX_TLS, run ./vitalrix restart.
Everyday operations
Manage the installation with the ./vitalrix command in the installation folder.
| Command | What it does |
|---|---|
./vitalrix status | Shows the containers and the health of every service. |
./vitalrix logs [component] | Follows the logs of vitalrix (the default), postgres, redis or proxy. |
./vitalrix start | Starts everything. |
./vitalrix stop | Stops everything. Data stays in the Docker volumes. |
./vitalrix restart | Recreates the VitalRix container, for example after you change .env. |
./vitalrix backup | Writes the database and stored files to backups/<time>/. See backups. |
./vitalrix restore <backup dir> | Replaces all current data with a backup. It asks you to type RESTORE first. |
./vitalrix upgrade <version | bundle> | Downloads a release (or reads a bundle you copied in), backs up, then moves to it. See upgrades. |
./vitalrix license <file> | Installs a new license file. It applies within 30 seconds. |
./vitalrix support-bundle | Writes a file for VitalRix support with logs, health and settings, secrets removed. |
./vitalrix ca-cert | Writes vitalrix-ca.crt, the certificate authority to trust when VITALRIX_TLS=internal. |
./vitalrix create-admin --email … --org … | Creates the first administrator. It works only on an empty installation. |
Set up email
VitalRix sends invitations, password resets and email alerts through your company's mail server. Without SMTP settings, no email is sent. Add the settings to .env, then run ./vitalrix restart.
SMTP_HOST=smtp.acme.internal
SMTP_PORT=587
SMTP_USER=vitalrix
SMTP_PASSWORD=your-smtp-password
SMTP_FROM=VitalRix <vitalrix@acme.internal>See the configuration reference for each setting.
Next steps
- Set up single sign-on and SCIM so your team signs in with your identity provider. Members can also be invited from Settings › Members.
- Take a first backup with
./vitalrix backupand schedule the next ones. - Add your first monitor with the quickstart. Checks run from this server and can reach your internal systems.
Something unclear or missing? Open VitalRix and use the in-app setup guides, or read Troubleshooting.