2022-09-12 10:16:24 +00:00
|
|
|
# zabbix-Dockerfile
|
|
|
|
|
2022-09-13 09:18:30 +05:00
|
|
|
Custom Zabbix container image.\
|
|
|
|
This has 2 images, 1 for `zabbix_server`, `nginx` and `php-pfm` based on `debian:11-slim` \
|
|
|
|
Another image that is being pulled from docker hub for mysql. \
|
|
|
|
Mysql files are mounted at datadir\. \
|
2022-09-12 10:16:24 +00:00
|
|
|
|
|
|
|
## Getting started
|
2022-09-13 09:16:51 +05:00
|
|
|
- git clone and cd into git dir
|
|
|
|
- Build zabbix image
|
2022-09-13 09:20:42 +05:00
|
|
|
- cd into configdir and configure according to your set up.
|
2022-09-13 09:16:51 +05:00
|
|
|
```bash
|
2022-09-13 09:20:42 +05:00
|
|
|
git clone https://gitlab.com/alliedmaldives/ops/zabbix-dockerfile zabbix-docker
|
|
|
|
cd zabbix-docker
|
2022-09-13 09:16:51 +05:00
|
|
|
docker build -t .
|
2022-09-13 09:20:42 +05:00
|
|
|
docker-compose up -d
|
|
|
|
xdg-open http://localhost:8000
|
2022-09-12 10:16:24 +00:00
|
|
|
```
|
|
|
|
|
2022-09-13 09:16:51 +05:00
|
|
|
## To-do
|
|
|
|
- mount all needed config dirs outside container. (currently only basic configs are there)
|
|
|
|
- mount scirpt dirs outside container add alert and other custom scripts.
|