diff --git a/compose.yml b/compose.yml new file mode 100644 index 0000000..7d8b2e9 --- /dev/null +++ b/compose.yml @@ -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} \ No newline at end of file diff --git a/env.sample b/env.sample new file mode 100644 index 0000000..cd126f0 --- /dev/null +++ b/env.sample @@ -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 \ No newline at end of file