Skip to content

Instantly share code, notes, and snippets.

@lazyfrosch
Created December 16, 2021 13:52
Show Gist options
  • Save lazyfrosch/7be78dc7eeba287982b27d402e661e8c to your computer and use it in GitHub Desktop.
Save lazyfrosch/7be78dc7eeba287982b27d402e661e8c to your computer and use it in GitHub Desktop.
Icinga Web development example
---
version: '2'
services:
web:
image: lazyfrosch/icingaweb2
#environment:
# XDEBUG_ENABLED: 1
ports:
- 8080:80
depends_on:
- db
volumes:
#- /home/markus/devel/icinga/icingaweb2:/usr/share/icingaweb2
#- ./vendor/icingaweb2:/usr/share/icingaweb2
- web_conf:/etc/icingaweb2
- .:/usr/share/icingaweb2/modules/director
- /home/markus/devel/icinga/icingaweb2-module-fileshipper:/usr/share/icingaweb2/modules/fileshipper
- ./data:/etc/icingaweb2/imports
db:
image: mariadb
ports:
- 3306:3306
environment:
MYSQL_ROOT_PASSWORD: onlyforadmin
MYSQL_DATABASE: icingaweb2
MYSQL_USER: icingaweb2
MYSQL_PASSWORD: rosebud
volumes:
- db_data:/var/lib/mysql
icinga2:
image: lazyfrosch/icinga2
depends_on:
- db
volumes:
- icinga_conf:/etc/icinga2
- icinga_data:/var/lib/icinga2
hostname: icinga2
environment:
ICINGA_NODENAME: icinga2
ICINGA_CA_ENABLE: 'true'
ICINGA_CA_TICKET_SALT: yoloops
ICINGA_API_USER_admin: test
#ICINGA_ENABLE_CHECKS: 'false'
ICINGA_CONCURRENT_CHECKS: 50
ICINGA_IDO_ENABLE: 'true'
ICINGA_IDO_HOST: db
ICINGA_IDO_NAME: icinga2core
ICINGA_IDO_USERNAME: icingaweb2
ICINGA_IDO_PASSWORD: rosebud
ICINGA_IDO_INSTALL: 'true'
volumes:
web_conf:
db_data:
icinga_conf:
icinga_data:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment