add inital compose

This commit is contained in:
2025-02-02 18:29:54 +01:00
parent 69a39ac67b
commit 530d895ec0
2 changed files with 22 additions and 0 deletions

16
compose.yml Normal file
View File

@@ -0,0 +1,16 @@
services:
icinga-satellite:
image: git.ao-it.net/docker/icinga-satellite:latest
hostname: ${ICINGA_SATELLITE_CN:-satellite.example.com}
restart: always
ports:
- 5665:5665
volumes:
- ./files:/data
environment:
ICINGA2_JOIN_TICKET: ${ICINGA_JOIN_TICKET}
ICINGA2_PARENT_HOST: ${ICINGA_PARENT_HOST:-icinga.example.com}
ICINGA2_PARENT_CN: ${ICINGA_PARENT_CN:-icinga.example.com}
ICINGA2_PARENT_ZONE: ${ICINGA_PARENT_ZONE:-master}
ICINGA2_SATELLITE_CN: ${ICINGA_SATELLITE_CN:-satellite.example.com}
ICINGA2_SATELLITE_ZONE: ${ICINGA_SATELLITE_ZONE:-icinga-satellite}

6
env.sample Normal file
View File

@@ -0,0 +1,6 @@
ICINGA_JOIN_TICKET: # generate on master node with: icinga2 pki ticket --cn $ICINGA_SATELLITE_CN
ICINGA_PARENT_HOST: icinga.example.com # set ip is different from CN (FQDN)
ICINGA_PARENT_CN: icinga.example.com
ICINGA_PARENT_ZONE: master
ICINGA_SATELLITE_CN: satellite.example.com
ICINGA_SATELLITE_ZONE: icinga-satelliete-zone