Giter VIP home page Giter VIP logo

docker-zabbix-mysql's Introduction

Docker Zabbix MySQL

Container

This container provides a mysql instance.

It's designed to be used in conjunction with other containers and data-only containers and provides only 1 process: mysqld_safe.

The idea is to use this container with docker-zabbix-server and docker-zabbix-web to form a working Zabbix installation, following the Docker principle of only using 1 process per container.

Usage

This is an example to create a working Zabbix 2.4 server using docker-zabbix-server.

Create a data-only container to hold the actual database data:

docker run -v /var/lib/mysql --name zabbix-data busybox true

Pull and build docker-zabbix-server:

git clone git://github.com/dkanbier/docker-zabbix-server
docker build -t dkanbier/zabbix-server docker-zabbix-server/

Pull and build docker-zabbix-mysql:

git clone git://github.com/dkanbier/docker-zabbix-mysql
docker build -t dkanbier/zabbix-db docker-zabbix-mysql/

Pull and build docker-zabbix-web:

git clone git://github.com/dkanbier/docker-zabbix-web
docker build -t dkanbier/zabbix-web docker-zabbix-web/

Now we have every component of Zabbix in a separate container, ready to start:

Start the database:

docker run -d --name zabbix-db --volumes-from zabbix-data dkanbier/zabbix-db

Start the Zabbix server and link it to the database:

docker run -d  --name zabbix-server --link zabbix-db:zabbix-db dkanbier/zabbix-server

Start the web server:

docker run -d --name zabbix-web -p 80:80 --link zabbix-db:zabbix-db --link zabbix-server:zabbix-server dkanbier/zabbix-web

Done. There should be 3 running containers now:

CONTAINER ID        IMAGE                           COMMAND                PORTS 
e835be9e5a85        dkanbier/zabbix-web:latest      apachectl -DFOREGROU   0.0.0.0:80->80/tcp
dc1b4fbd756f        dkanbier/zabbix-server:latest   /usr/sbin/zabbix_ser   10051/tcp, 10052/tcp
7b956c5cd7eb        dkanbier/zabbix-db:latest       /bin/bash /start.sh    3306/tcp

And the Zabbix GUI should be availabe on port the exposed port 80.

docker-zabbix-mysql's People

Contributors

dkanbier avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

docker-zabbix-mysql's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.