Public | Automated Build

Last pushed: 9 months ago
Short Description
Run zabbix-frontend (Web interface) in a docker container.
Full Description

docker-zabbix-frontend

Zabbix-frontend in docker

Contents

Run zabbix-frontend (Web interface) in a docker container.

Environment

This container requires the following environment variables to be set.

$ZABBIX_DB_TYPE Database type (MYSQL)

$ZABBIX_DB_HOST Hostname of database server

$ZABBIX_DB_PORT Port of database server

$ZABBIX_DB_NAME Database Name

$ZABBIX_DB_USER Database User

$ZABBIX_DB_PASSWORD Database Password

$ZABBIX_DB_SCHEMA Database Schema (not for mySQL, thus empty)

$ZABBIX_SERVER Hostname of zabbix-server

$ZABBIX_SERVER_PORT Port of zabbix-server

$ZABBIX_SERVER_NAME Name of zabbix-server

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:
Docker Pull Command
Owner
linuxspecialist

Comments (0)