Images Used:
- mysql - VersΓ£o 8.0
- zabbix-server-mysql - VersΓ£o 6.0
- zabbix-web-apache-mysql - VersΓ£o 6.0
- zabbix-web-service - VersΓ£o 6.0
- grafana - VersΓ£o 9.5.3
- traefik - VersΓ£o latest
Install Docker Engine and Docker Compose by following my guide.
apt-get update
apt-get install ca-certificates curl gnupg
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
chmod a+r /etc/apt/keyrings/docker.gpg
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
apt-get update
apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
Clone the repository to your system and start the deployment using docker compose.
NOTE: Before, change MySQL user password and Zabbix/Grafana URL and ACME Email by editing env/db.env and .env files.
cd /opt
git clone https://github.com/alfredotavio/zabbix-grafana-docker.git
cd /opt/zabbix-grafana-docker
mkdir letsencrypt/
touch letsencrypt/acme.json
chmod 600 letsencrypt/acme.json
docker compose up -d
.
βββ env
β βββ db.env
β βββ grafana.env
β βββ traefik.env
β βββ zbx-rpt.env
β βββ zbx-srv.env
β βββ zbx-web.env
βββ .env
βββ docker-compose.yml
Alfredo Castro |