Self-host Zabbix on a VPS
Enterprise-grade network, server, and application monitoring with alerting and trend graphs.
levelrail-cli templates deploy zabbix --name my-zabbixSpecification
- Status
- Listed
- Category
- Monitoring
- Services
- db, zabbix-server, zabbix-web
- Ports
- 8080
- Volumes
- 2
- Memory
- about 1 GiB
- arm64
- image published
- amd64
- image published
- Settings to fill in
- none
About Zabbix
Enterprise-grade network, server, and application monitoring with alerting and trend graphs. Runs 3 containers (db, zabbix-server, zabbix-web), with zabbix-web listening on port 8080; data is kept in named volumes.
What it deploys
Zabbix runs as 3 services in a single Compose app, listening on port 8080, with 2 named volume mounts.
| Service | Image | Tag | Ports | Volumes |
|---|---|---|---|---|
| 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 |
Before you install
- CPU architecture. arm64 listed. Every image lists linux/arm64 in its registry manifest. That is a manifest fact, not proof the app runs on Arm.
- Listed. It is in the catalog. Back up the data volume before changing an image tag.
- Host ports. It publishes port 8080 directly on the host, so open them in the VPS firewall only if you want that.
Settings and environment
You do not have to fill in anything. 3 secrets are generated at deploy and stored encrypted. Values are never shown here.
| Service | Variable | Value |
|---|---|---|
| db | POSTGRES_DB | Preset by the template |
| db | POSTGRES_PASSWORD | Generated at deploy |
| db | POSTGRES_USER | Preset by the template |
| zabbix-server | DB_SERVER_HOST | Preset by the template |
| zabbix-server | POSTGRES_DB | Preset by the template |
| zabbix-server | POSTGRES_PASSWORD | Generated at deploy |
| zabbix-server | POSTGRES_USER | Preset by the template |
| zabbix-web | DB_SERVER_HOST | Preset by the template |
| zabbix-web | PHP_TZ | Preset by the template |
| zabbix-web | POSTGRES_DB | Preset by the template |
| zabbix-web | POSTGRES_PASSWORD | Generated at deploy |
| zabbix-web | POSTGRES_USER | Preset by the template |
| zabbix-web | ZBX_SERVER_HOST | Preset by the template |
Install Zabbix on a VPS
-
Install Levelrail on a fresh VPS
Run this as root on a Linux server (amd64 or arm64) with ports 80 and 443 reachable. The installer prints a setup link.
curl -fsSL https://levelrail.com/install.sh | sudo sh -
Sign in
Open the setup link, choose a password, then log the CLI in. The CLI install command is
curl -fsSL https://levelrail.com/install-cli.sh | shif the machine does not have it. See Getting started.levelrail-cli login --device -
Read the template
Shows the entry, including its full compose.yaml.
levelrail-cli templates get zabbix -
Deploy it
This deploys the template compose file as an app. The app name defaults to the template id; --name sets another.
levelrail-cli templates deploy zabbix --name my-zabbix
Without a domain the app gets an sslip.io address. You can also deploy it from the dashboard: Apps, New app, Browse templates, then Zabbix.
Docs and upstream
More in Monitoring
- ZipkinA distributed tracing system that collects timing data from your services and shows request traces. This uses in-memory storage, so traces reset when the container restarts.
- VictoriaMetricsA fast, resource-frugal time-series database that speaks the Prometheus query and remote-write APIs. Has no authentication, so point Prometheus-style senders at victoriametrics:8428 from other services in this project, or attach a domain only behind Basic Auth. Not published on the host.
- VictoriaLogsA log database with a built in web UI and low memory use, with a data volume. Send logs to port 9428 from this project. The API has no login, so restrict access before exposing it.
- VectorHigh performance observability data pipeline for logs and metrics. The install form carries vector.yaml as an editable file, so it starts with an HTTP source and a console sink.
- Uptime Kuma (MariaDB)Uptime Kuma with a MariaDB sidecar provisioned, for the setups that opt out of its default SQLite file.
- Uptime KumaA self-hosted uptime monitor with a clean dashboard for HTTP, TCP, DNS, and ping checks.