Skip to content
Zabbix-server in docker
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Dockerfile
README.md
docker-entrypoint.sh

README.md

docker-zabbix-server

Zabbix-server in docker

Contents

Run zabbix-server (with mySQL backend) in a docker container.

Environment

This container requires the following environment variables to be set.

$ZABBIX_DB_HOST Hostname of mySQL server

$ZABBIX_DB_PORT Port of mySQL server

$ZABBIX_ DB__NAME Database name

$ZABBIX_DB_USER Database user

$ZABBIX_DB_ PASSWORD Database password

docker-compose example

This is an example docker-compose to setup the entire zabbix-stack.

version: '2'
services:
  db:
    image: linuxspecialist/zabbix-database:latest
    volumes:
      - mysql:/var/lib/mysql
    environment:
      MYSQL_ROOT_PASSWORD: zabbix
      MYSQL_DATABASE: zabbix
      MYSQL_USER: zabbix
      MYSQL_PASSWORD: zabbix

  zabbix-server:
    image: linuxspecialist/zabbix-server:latest
    links:
      - db
    ports:
      - "10050:10050"
      - "10051:10051"
    environment:
      ZABBIX_DB_HOST: db
      ZABBIX_DB_PORT: 3306
      ZABBIX_DB_NAME: zabbix
      ZABBIX_DB_USER: zabbix
      ZABBIX_DB_PASSWORD: zabbix

  zabbix-frontend:
    image: linuxspecialist/zabbix-frontend:latest
    links:
      - db
      - zabbix-server
    ports:
      - "80:80"
    environment:
      ZABBIX_DB_TYPE: MYSQL
      ZABBIX_DB_HOST: db
      ZABBIX_DB_PORT: 3306
      ZABBIX_DB_NAME: zabbix
      ZABBIX_DB_USER: zabbix
      ZABBIX_DB_PASSWORD: zabbix
      ZABBIX_DB_SCHEMA:
      ZABBIX_SERVER: zabbix-server
      ZABBIX_SERVER_PORT: 10051
      ZABBIX_SERVER_NAME: zabbix-server

volumes:
  mysql:
You can’t perform that action at this time.