Zabbix Server with MySQL, Grafana and Traefik in a Docker Compose

πŸ—’οΈ Describe

Images Used:

◼️ Install

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

πŸ“‚ Structure

.
β”œβ”€β”€ env
β”‚   β”œβ”€β”€ db.env
β”‚   β”œβ”€β”€ grafana.env
β”‚   β”œβ”€β”€ traefik.env
β”‚   β”œβ”€β”€ zbx-rpt.env
β”‚   β”œβ”€β”€ zbx-srv.env
β”‚   └── zbx-web.env
β”œβ”€β”€ .env
└── docker-compose.yml

πŸ‘¨β€πŸ’» Author

Foto do Alfredo Castro
Alfredo Castro