These files are for running the Zabbix server and the Zabbix agent on Docker.
1 - Change the password inside the docker-compose.yml file, as the one that is there is a random one.
2 - Start the server as root or with sudo, as the agent needs to be privileged:
$ sudo docker-compose up -d
For the first time you login, the credentials are:
Username: Admin
Password: zabbix
In the servers you want to monitor, you need to install a Zabbix agent which communicates with the Zabbix server. This agent needs to run in privileged mode, so it is able to get deeper system statistics.
1 - Send the content inside the zabbix-agent directory to the server you want to monitor
2 - Change ZBX_SERVER_HOST inside the docker-compose.yml file so it points to your Zabbix server.
3 - Start the agent:
$ sudo docker-compose up -d
4 - Change the path inside the zabbix-agent/host/etc/systemd/system/docker-zabbix-agent.service to the one where your docker-compose.yml file is in the server.
5 - Copy this docker-zabbix-agent.service you just changed to the directory /etc/systemd/system
6 - Reload the daemons and enable the one you just created, so it runs automatically in case the system is rebooted:
$ sudo systemctl daemon-reload
$ sudo systemctl enable docker-zabbix-agent
In the Zabbix web interface, go to Configuration => Hosts, then fill the name of your host in "Host name" field, add it to the "Linux servers" group, put your server's IP address in the "Agent interfaces" section and be sure to have the "Enabled" checkbox checked.
After this you can go to Monitoring => Screens and configure your server monitoring dashboard there.