Public | Automated Build

Last pushed: 2 years ago
Short Description
Short description is empty for this repo.
Full Description

docker-centos-icinga2

Icinga2 and Icinga2 web on CentOS docker image

This docker image creates a latest CentOS dokcer contianer runinng Apache2, MariaBD, and Icinga2 with Icinga Web 2. You should supply an environment variable 'TZ' when the container is first run to set the correct timezone in /etc/php.ini - otherwise a default timezone of UTC is used:

docker run -d --cap-add net_raw --cap-add net_admin -e TZ="Europe/London" -p 80:80 -p 443:443 -p 9001:9001 jervine/docker-centos-icinga2

The container requires some extra (non-default) capabilities added. These are added so that the icinga user can use the ping command which is used to check that hosts are up. The port 9001 is used for the supervisor daemon. This can be disabled if needs be. The Dockerfile removes and re-adds the iputils package. Again, this is to ensure that the icinga user can use ping correctly.

Optionally, the /etc/icinga2, /etc/icingaweb2, and /var/lib/mysql directories can be mapped from a local filesystem with the -v argument.

When first spun up, the web interface can be configured via http://\<docker host\>/icinga2web/setup - you will need the token that was created during initialisation, and this can be found by looking at the container logs:

docker logs <container name> | grep token
Docker Pull Command
Owner
joshuacox
Source Repository