Skip to content

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.

The processor architecture decides which offline bundle you need.
Run
uname -m
You should see
x86_64

If not: aarch64 means an ARM server: use the arm64 bundle below. Anything else is not supported.

Any version from 24 up works.
Run
docker --version
You should see
Docker version 27.5.1, build 9f9e405

If 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.

Run
docker compose version
You should see
Docker Compose version v2.33.0

If 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.

Confirms your user can run containers.
Run
docker run --rm hello-world | grep 'Hello from Docker'
You should see
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.

Run
openssl version
You should see
OpenSSL 3.0.13 30 Jan 2024

If not: Install it with sudo apt-get install openssl (or sudo dnf install openssl).

Run
free -g | grep Mem
You should see
Mem:              15          2         10          0          3         13

If not: The first number is the memory in GB. Under 16 the installer warns but continues; under 8 VitalRix will not run well.

Run
df -h / | tail -1
You should see
/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.

Only the header line means both ports are free.
Run
sudo ss -ltn '( sport = :80 or sport = :443 )'
You should see
State  Recv-Q Send-Q Local Address:Port Peer Address:Port Process

If 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.

Run
sudo mkdir -p /opt/vitalrix && sudo chown $USER /opt/vitalrix && cd /opt/vitalrix
You should see
(nothing: no output means it worked)

A. The server has internet access

The online bundle is small (about 20 KB): the installer downloads the images itself.
Run
curl -fLO https://downloads.vitalrix.com/onprem/vitalrix-onprem-latest.tar.gz
You should see
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 19753  100 19753    0     0  98765      0 --:--:-- --:--:-- --:--:-- 98765

If not: Could not resolve host: the server has no internet access. Use the offline bundle (B).

Optional: check the download is complete and untouched.
Run
curl -fLO https://downloads.vitalrix.com/onprem/vitalrix-onprem-latest.tar.gz.sha256
sha256sum -c vitalrix-onprem-latest.tar.gz.sha256
You should see
vitalrix-onprem-latest.tar.gz: OK

If not: FAILED: the download is damaged. Delete it and download again.

B. The server has no internet access (offline bundle)

About 850 MB, with every image inside. Use arm64 instead of amd64 in both names if uname -m said aarch64.
Run on a computer with internet access
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.sha256
You should see
vitalrix-onprem-latest-amd64.tar.gz: OK
Run on that computer
scp vitalrix-onprem-latest-amd64.tar.gz admin@10.0.0.20:/opt/vitalrix/
You should see
vitalrix-onprem-latest-amd64.tar.gz       100%  845MB  92.1MB/s   00:09

If 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

Run
tar xzf vitalrix-onprem-latest*.tar.gz && cd vitalrix-onprem-*/ && pwd
You should see
/opt/vitalrix/vitalrix-onprem-1.2.0

If not: With the offline bundle the folder ends in -amd64 or -arm64; that is fine. Every command from here on runs in this folder.

Run
ls
You should see
Caddyfile  IMAGE  README.md  VERSION  certs  docker-compose.yml  helm  install.sh  license  sites  vitalrix  website.caddy

If not: The offline bundle also has ARCH and an images folder; that is what makes it work without internet.

Run
cat VERSION
You should see
1.2.0

4. 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.

Run
cp ~/vitalrix.license license/vitalrix.license && ls -l license/
You should see
total 4
-rw-r--r-- 1 admin admin 482 Oct 22 10:15 vitalrix.license

If 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).

It takes 2 to 6 minutes. With the offline bundle, the image lines read Loading images from the bundle (offline install)… and Loaded image: … instead, and nothing is downloaded.
Run
./install.sh --domain vitalrix.acme.internal --admin-email you@acme.com --org "Acme"
You should see
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 backup

If 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:

Run
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
You should see
(the same as above, without the two questions)

6. Check that everything is up

Every line should say ok (or worker, which has no health page).
Run
./vitalrix status; echo exit=$?
You should see
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=0

If 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):

DNS records
; 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.20
Run on your computer
nslookup monitor.vitalrix.acme.internal
You should see
Name:    monitor.vitalrix.acme.internal
Address: 10.0.0.20

If 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.)

Run
./vitalrix ca-cert
You should see
Wrote vitalrix-ca.crt: add it to your computers' trusted certificate authorities.
Copy the file to each computer that will open VitalRix.
Run on your computer
scp admin@10.0.0.20:/opt/vitalrix/vitalrix-onprem-1.2.0/vitalrix-ca.crt .
You should see
vitalrix-ca.crt                           100%  611     1.2MB/s   00:00
Run on a Mac
sudo security add-trusted-cert -d -r trustRoot -k /Library/Keychains/System.keychain vitalrix-ca.crt
You should see
(nothing: no output means it worked)
Run on Ubuntu or Debian
sudo cp vitalrix-ca.crt /usr/local/share/ca-certificates/ && sudo update-ca-certificates
You should see
Updating certificates in /etc/ssl/certs...
1 added, 0 removed; done.
Firefox keeps its own list: import the file under Settings › Privacy & Security › Certificates › View Certificates › Authorities.
Run in Windows PowerShell, as administrator
Import-Certificate -FilePath .\vitalrix-ca.crt -CertStoreLocation Cert:\LocalMachine\Root
You should see
Thumbprint                                Subject
----------                                -------
3F2A…                                     CN=Caddy Local Authority - 2026 ECC Root
The redirect to the sign-in page means HTTPS, DNS and VitalRix all work.
Run on your computer
curl -sI https://monitor.vitalrix.acme.internal/ | head -2
You should see
HTTP/2 307
location: /login?next=%2F

If 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

Installer messages and what to do
The installer saysWhat to do
install: Docker is not installedInstall Docker (step 1) and run the installer again.
install: Docker Compose v2 is requiredInstall 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 charactersRun it again with a longer password, or press Enter to have one generated.
install: license file … not foundThe path after --license is wrong. Check it with ls.
install: this bundle is for amd64 servers, this one is arm64Download the offline bundle for the other architecture.
install: could not download … Without internet access, install from the offline bundleThe server cannot reach the internet (or Docker Hub). Use the offline bundle (step 2B).
VitalRix is installed but some services are still startingUsually a slow first start: wait a few minutes and run ./vitalrix status. If it stays down, ./vitalrix logs.
Warning: less than 16 GB of memoryOnly a warning. Under 8 GB, add memory.
permission denied while trying to connect to the Docker daemon socketAdd 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

./install.sh options
OptionWhat it setsDefault
--domainThe base domain. VitalRix uses monitor., api. and docs. under it.Asked
--admin-emailThe first administrator's email address.Asked (required)
--orgThe name of your organization.Asked
--licensePath to your license file. It is copied to license/vitalrix.license.license/vitalrix.license if present, otherwise asked (empty means Free limits)
--tlsinternal, an email address for Let's Encrypt, or "/certs/fullchain.pem /certs/privkey.pem".internal (asked)
--https-portThe HTTPS port. Links include it when it is not 443.443
--http-portThe HTTP port.80
--yesDo 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.

Certificate options
ValueWhat happensWhen to use it
internalCaddy 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.comCertificates from Let's Encrypt, renewed automatically.Only when the addresses are reachable from the internet.
/certs/fullchain.pem /certs/privkey.pemYour company's certificate for *.<domain>, placed in the certs folder.When your company issues its own certificates.
Use your own certificate
cp fullchain.pem privkey.pem certs/
# in .env
VITALRIX_TLS=/certs/fullchain.pem /certs/privkey.pem

After changing VITALRIX_TLS, run ./vitalrix restart.

Everyday operations

Manage the installation with the ./vitalrix command in the installation folder.

./vitalrix commands
CommandWhat it does
./vitalrix statusShows the containers and the health of every service.
./vitalrix logs [component]Follows the logs of vitalrix (the default), postgres, redis or proxy.
./vitalrix startStarts everything.
./vitalrix stopStops everything. Data stays in the Docker volumes.
./vitalrix restartRecreates the VitalRix container, for example after you change .env.
./vitalrix backupWrites 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-bundleWrites a file for VitalRix support with logs, health and settings, secrets removed.
./vitalrix ca-certWrites 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.

Email settings in .env
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 backup and 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.