This repository is used as source for the
docker image icinga/icinga2
located at Docker Hub.
- Docker >= 1.6.0
This container is used for demos, tests and development only.
If you encounter bugs, please open a new issue at dev.icinga.org and/or send a patch.
- Based on centos:centos7 (similar to the Vagrant boxes)
- Icinga 2 w/ DB IDO MySQL, Icinga Web 2, MariaDB, Apache2
- Default installation/credentials. Use at your own risk.
Start a new container, bind the container's port 80 to localhost:3080 and let the initialization do its job:
$ sudo docker run -ti -p 3080:80 icinga/icinga2
If you want to invoke it manually, go for
$ sudo docker run -ti -p 3080:80 icinga/icinga2 /bin/bash
# /opt/icinga2/initdocker
Build a new container based on this repository:
$ sudo docker pull centos:centos7
$ sudo docker build -t icinga/icinga2 .
Even if you can already mount specific volumes there's ssh access available. Make sure to map the port accordingly.
$ sudo docker run -ti -p 3080:80 -p 3022:22 icinga/icinga2
Then login as appuser/appuser
. sudo is enabled for this user.
$ ssh appuser@localhost -p 3022
The configuration is located in /etc/icinga2 which is exposed as volume from docker.
By default the icinga database is created, and ido-mysql
and command
features
are enabled.
The container startup will validate the configuration once (e.g. if you have mounted the volume).
Icinga Web 2 can be accessed at http://localhost:3080/icingaweb2 w/ icingaadmin:icinga
as credentials.
The configuration is located in /etc/icingaweb2 which is exposed as volume from docker.
By default the icingaweb2 database is created including the icingaadmin
user. Additional
configuration is also added to skip the setup wizard.
The following ports are exposed: 22, 80, 443, 3306, 5665
These volumes can be mounted in order to test and develop various stuff.
/etc/icinga2
/etc/icingaweb2
/var/lib/icinga2
/usr/share/icingaweb2
- Jordan Jethwa for the initial icinga2 docker image for Debian