Simple docker lab for Zabbix with PostgreSQL, Grafana and Zapix (API Testing)
Contents
Contents
- Zabbix:
- Zabbix Server at: zabbix-server:10051
- Zabbix Agent at: zabbix-agent:10050
- Zabbix Frontend at: http://zabbix-frontend:8080
- Database:
- Postgresql at: postgresql:5432
- PGAdmin at: http://pgadmin:5050
- Support Tools:
- Zapix at: http://zapix
- Grafana at: http://grafana:3000
- Mailhog:
- WEB Client: http://mailhog:8025
- SMTP Server: mailhog
- SMTP Server Port: 1025
- SMTP Helo: mailhog
- SMTP Email: admin@mailhog
- Install docker and git
- Copy the project and zapix dependency to your station:
$ git clone --recurse-submodules https://github.com/isaqueprofeta/zabbix-lab.git- In the scenario of forgetting the "--recurse-submodules" parameter, activate the zappix using the lines bellow:
$ git submodule init $ git submodule update
- In the scenario of forgetting the "--recurse-submodules" parameter, activate the zappix using the lines bellow:
- If necessary edit the version options:
$ vim .envZABBIX_VERSION 5.0-latest POSTGRES_VERSION 11
- Start the docker hoster for easy access using local DNS:
$ docker run -d \ --restart=always -v /var/run/docker.sock:/tmp/docker.sock \ -v /etc/hosts:/tmp/hosts \ dvdarias/docker-hoster
- Start the project with docker-compose
- Note that docker will not use 'localhost' so, do not configure the Grafana datasources for Zabbix or PostgreSQL and also for PGAdmin to PostgreSQL and Mailhog. To do this configuration, look at the hostname option for each container, inside docker-compose.yml file.