Self-host Zabbix with Levelrail

Enterprise-grade network, server, and application monitoring with alerting and trend graphs.

  • Authorzabbix
  • LicenceAGPL-3.0-only
  • Memory1 GiB
  • Archarm64
  • Services3

How to self-host Zabbix

  1. Pull the images

    3 images are pulled on your server.

    Show images
    • postgres:16-alpine
    • zabbix/zabbix-server-pgsql:alpine-7.4-latest
    • zabbix/zabbix-web-nginx-pgsql:alpine-7.4-latest
  2. Create the app

    3 services start in a single Compose app, with 2 named volume mounts for your data, on port 8080.

  3. Fill in the secrets

    3 secrets are generated and stored encrypted, 10 settings are preset, you do not have to fill in anything.

  4. Open it

    Without a domain the app gets an sslip.io address; add --domain SERVICE=HOST to use your own.

Zabbix requirements

Memory
About 1 GiB
Architectures
amd64 image published, arm64 image published
Ports
8080
Domain
Optional, an sslip.io address is used without one
Settings
none to fill in
License
AGPL-3.0-only, network copyleft (agpl) license
  • Listed. It is in the catalog but not verified. Back up the data volume before changing an image tag.
  • Host ports. It publishes port 8080 on the host, so open them in the VPS firewall only if you want that.

Install Levelrail first

On a server with Levelrail running, run the command above, or open the dashboard: Apps, New app, Browse templates, then Zabbix. New to Levelrail? Install it on a fresh VPS first.

docker pull ghcr.io/glincker/levelrail:latest

Then levelrail-cli login --device. See Getting started and the Zabbix docs page.

Deploy Zabbix your way

Every format below deploys the same pinned images. Pick the one that fits how you work.

Deploy Zabbix from the CLI

levelrail-cli templates deploy zabbix --name my-zabbix

Deploy Zabbix with the API

Create a token in the dashboard first. This one-click route deploys it as a trial app you can keep or remove.

curl -X POST -H "Authorization: Bearer $TOKEN" \
  https://levelrail.example.com/api/v1/service-templates/zabbix/deploy

Zabbix configuration

Zabbix services

ServiceImagePortsVolumes
db postgres:16-alpine none zabbix_db_data -> /var/lib/postgresql/data
zabbix-server zabbix/zabbix-server-pgsql:alpine-7.4-latest none zabbix_server_data -> /var/lib/zabbix
zabbix-web zabbix/zabbix-web-nginx-pgsql:alpine-7.4-latest 8080 none

Zabbix environment variables

VariableServiceValue
POSTGRES_DB db Preset by the template
POSTGRES_PASSWORD db Generated at deploy
POSTGRES_USER db Preset by the template
DB_SERVER_HOST zabbix-server Preset by the template
POSTGRES_DB zabbix-server Preset by the template
POSTGRES_PASSWORD zabbix-server Generated at deploy
POSTGRES_USER zabbix-server Preset by the template
DB_SERVER_HOST zabbix-web Preset by the template
Show all 13 variables
  • PHP_TZzabbix-webPreset by the template
  • POSTGRES_DBzabbix-webPreset by the template
  • POSTGRES_PASSWORDzabbix-webGenerated at deploy
  • POSTGRES_USERzabbix-webPreset by the template
  • ZBX_SERVER_HOSTzabbix-webPreset by the template

Ports and volumes

Ports
8080
Volumes
2 named mounts: zabbix_db_data -> /var/lib/postgresql/data, zabbix_server_data -> /var/lib/zabbix

Zabbix FAQ

How much memory does Zabbix need?

The catalog lists about 1 GiB of memory for Zabbix across its 3 services.

Does Zabbix run on arm64?

For Zabbix, an arm64 image is published; amd64 is image published.

What licence is Zabbix under?

Zabbix is licensed under AGPL-3.0-only, which is network copyleft, so source sharing also applies when it is offered as a hosted service.

Does Zabbix need configuration before it starts?

No. The template fills in its own defaults and generates secrets at deploy time.

Which database does Zabbix bundle?

The template includes Postgres, running as its own service.

Which ports does Zabbix use?

Zabbix listens on port 8080 inside the stack.

Where does Zabbix keep its data?

In named volumes: zabbix_db_data mounted at /var/lib/postgresql/data and zabbix_server_data mounted at /var/lib/zabbix.

Can I deploy Zabbix on Dokploy or Dokku?

The services and pinned images on this page can be run on any Docker host. The public Dokploy templates list has an entry with the id zabbix for this app, so check that entry as well. Dokku deploys container images with its own commands, so the pinned image postgres:16-alpine, zabbix/zabbix-server-pgsql:alpine-7.4-latest, zabbix/zabbix-web-nginx-pgsql:alpine-7.4-latest is what you deploy there.

levelrail-cli templates deploy zabbix --name my-zabbix