Skip to content

Instantly share code, notes, and snippets.

@dieechtenilente
Created March 8, 2023 19:03
Show Gist options
  • Save dieechtenilente/f81d0160a3305ce292f0a7ff61f26e30 to your computer and use it in GitHub Desktop.
Save dieechtenilente/f81d0160a3305ce292f0a7ff61f26e30 to your computer and use it in GitHub Desktop.
Icinga Web2, InfluxDB docker-compose
version: '3.7'
services:
icingaweb2:
container_name: icingaweb2
image: icinga/icingaweb2:latest
restart: unless-stopped
environment:
- icingaweb.enabledModules=monitoring,graphite,grafana
- icingaweb.passwords.icingaweb2.icingaadmin="xxx"
- icingaweb.authentication.icingaweb2.backend="db"
- icingaweb.authentication.icingaweb2.resource=icingaweb_db
- icingaweb.config.global.config_backend="db"
- icingaweb.config.global.config_resource=icingaweb_db
- icingaweb.config.logging.log="syslog"
- icingaweb.config.logging.level="ERROR"
- icingaweb.config.logging.application="icingaweb2"
- icingaweb.config.logging.facility="user"
- icingaweb.groups.icingaweb2.backend="db"
- icingaweb.groups.icingaweb2.resource="icingaweb_db"
- icingaweb.resources.icingaweb_db.type="db"
- icingaweb.resources.icingaweb_db.db="pgsql"
- icingaweb.resources.icingaweb_db.host="xxx"
- icingaweb.resources.icingaweb_db.port="5432"
- icingaweb.resources.icingaweb_db.use_ssl="0"
- icingaweb.resources.icingaweb_db.charset=""
- icingaweb.resources.icingaweb_db.dbname="xxx"
- icingaweb.resources.icingaweb_db.username="xxx"
- icingaweb.resources.icingaweb_db.password="xxx"
- icingaweb.resources.icinga_ido.type="db"
- icingaweb.resources.icinga_ido.db="pgsql"
- icingaweb.resources.icinga_ido.host="xxxx"
- icingaweb.resources.icinga_ido.port="5432"
- icingaweb.resources.icinga_ido.dbname="xxx"
- icingaweb.resources.icinga_ido.username="xxx"
- icingaweb.resources.icinga_ido.password="xxx"
- icingaweb.resources.icinga_ido.use_ssl="0"
- icingaweb.resources.icinga_ido.charset=""
- icingaweb.roles.Administratoren.users="admin"
- icingaweb.roles.Administratoren.permissions="*"
- icingaweb.roles.Administratoren.groups="Administratoren"
- icingaweb.modules.monitoring.commandtransports.icinga2.transport=api
- icingaweb.modules.monitoring.commandtransports.icinga2.host=vxxx
- icingaweb.modules.monitoring.commandtransports.icinga2.username=xx
- icingaweb.modules.monitoring.commandtransports.icinga2.password=xx
ports:
- '8180:8080'
volumes:
- ./icingaweb2:/data/etc/icingaweb2
influxdb2:
container_name: influxdb2
image: influxdb:2.6
restart: unless-stopped
environment:
- DOCKER_INFLUXDB_INIT_MODE=setup
- DOCKER_INFLUXDB_INIT_USERNAME=xxx
- DOCKER_INFLUXDB_INIT_PASSWORD=xxx
- DOCKER_INFLUXDB_INIT_ORG=monitoring
- DOCKER_INFLUXDB_INIT_BUCKET=icinga2
- DOCKER_INFLUXDB_INIT_ADMIN_TOKEN=xxx
ports:
- "8086:8086"
volumes:
- ./influxdb2-data:/var/lib/influxdb2
- ./influxdb2-config:/etc/influxdb2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment