2023-04-08 14:50:22 +05:00
2022-09-12 16:12:22 +05:00
2022-09-12 15:50:58 +05:00
2023-04-08 15:14:19 +05:00
2023-04-08 14:50:22 +05:00

zabbix-Dockerfile

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.
startservices.sh contain script to start zabbix_server, nginx and php-fpm

Getting started

Build and push to register

  • git clone and cd into git dir
  • Build zabbix image
  • cd into configdir and configure according to your set up.
git clone https://git.shihaam.dev/dockerfiles/zabbix-server.git
cd zabbix-server
docker compose -f ./build/docker-compose.yml build
docker compose -f ./build/docker-compose.yml push

Running production

  • Git clone this repo and run docker compose up -d
git clone https://git.shihaam.dev/dockerfiles/zabbix-server.git
cd zabbix-server
docker-compose up -d
xdg-open http://localhost:8000
  • You will have Zabbix frontent avaible on port 8000

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.
  • setup proper logging.
  • mount log files from nginx,php-fpm and zabbix into datadir.
  • monitor zabbix process,kill container if zabbix dies
Description
nginx, php-fpm, zabbix-server itself
Readme 3.5 MiB
Languages
Dockerfile 47.7%
PHP 42%
Shell 10.3%