From a07e27bff6502c8504d96d6e7262993fee1bf4ab Mon Sep 17 00:00:00 2001 From: mr-forust Date: Sun, 7 Dec 2025 02:44:12 +0100 Subject: [PATCH] feat: checkmk service --- checkmk/compose.yaml | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 checkmk/compose.yaml diff --git a/checkmk/compose.yaml b/checkmk/compose.yaml new file mode 100644 index 0000000..b4d562d --- /dev/null +++ b/checkmk/compose.yaml @@ -0,0 +1,41 @@ +services: + checkmk: + image: checkmk/check-mk-raw:2.3.0-latest + container_name: checkmk + restart: unless-stopped + ports: + - "5000:5000" # UI + - "6556:6556" # AGENT + + volumes: + - ./checkmk:/omd/sites + + environment: + CMK_SITE_ID: "cmk" + + labels: + - "traefik.enable=true" + - "traefik.docker.network=traefik-proxy" + + # Prod Router + - "traefik.http.routers.checkmk.rule=Host(`checkmk.forust.xyz`)" + - "traefik.http.routers.checkmk.entrypoints=websecure" + - "traefik.http.routers.checkmk.tls=true" + - "traefik.http.services.checkmk.loadbalancer.server.port=5000" + + # Local Router + - "traefik.http.routers.checkmk-local.rule=Host(`checkmk.workstation.internal`) || Host(`checkmk.internal`)" + - "traefik.http.routers.checkmk-local.entrypoints=websecure" + - "traefik.http.routers.checkmk-local.tls=true" + + # Dev Router + - "traefik.http.routers.checkmk-dev.rule=Host(`checkmk.gigaforust.internal`)" + - "traefik.http.routers.checkmk-dev.entrypoints=websecure" + - "traefik.http.routers.checkmk-dev.tls=true" + + networks: + - traefik-proxy + +networks: + traefik-proxy: + external: true