Zabbix is an enterprise-level monitoring software designed to monitor the status of various network services and servers. It helps troubleshoot issues and provides notifications of problems occurring within your systems.

  1. Install docker
#!/bin/bash
sudo apt update
sudo apt upgrade -y

# Add Docker's official GPG key:
sudo apt-get update
sudo apt-get install ca-certificates curl gnupg
sudo install -m 0755 -d /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
sudo chmod a+r /etc/apt/keyrings/docker.gpg

# Add the repository to Apt sources:
echo \
  "deb [arch="$(dpkg --print-architecture)" signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \
  "$(. /etc/os-release && echo "$VERSION_CODENAME")" stable" | \
  sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt-get update

sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin -y
  1. Get clone the zabbix docker compose files
	git clone https://git.rdr-it.io/docker/zabbix.git
  1. Change to the env_vars directory to change passwords
cd env_vars
  1. Change .MYSQL_PASSWORD and .MYSQL_ROOT_PASSWORD files, change to a personalized password.
nano .MYSQL_PASSWORD

and

nano .MYSQL_ROOT_PASSWORD
  1. Start the docker compose and then go the web portal http://:8080
docker compose up
  1. once you can login with username:admin and password:zabbix. Stop the docker container by using “Ctrl-C”

  2. start the docker contianers as a demon

docker compose down && docker compose up -d

This quick guide walks you through installing Docker and setting up Zabbix using Docker Compose. Follow these steps to get your Zabbix environment up and running efficiently.