From 9c5e037567e3789d1938c0d6e55d903a8abee4fe Mon Sep 17 00:00:00 2001 From: mr-forust Date: Sun, 7 Dec 2025 04:10:32 +0100 Subject: [PATCH] refactor: switch to official checkmk dockercompose --- checkmk/.env.example | 2 ++ checkmk/compose.yaml | 29 +++++++++++++++++------------ 2 files changed, 19 insertions(+), 12 deletions(-) create mode 100644 checkmk/.env.example diff --git a/checkmk/.env.example b/checkmk/.env.example new file mode 100644 index 0000000..a57b7d2 --- /dev/null +++ b/checkmk/.env.example @@ -0,0 +1,2 @@ +CMK_PASSWORD=password +TZ=Europe/Berlin \ No newline at end of file diff --git a/checkmk/compose.yaml b/checkmk/compose.yaml index b4d562d..4d8e69d 100644 --- a/checkmk/compose.yaml +++ b/checkmk/compose.yaml @@ -1,18 +1,21 @@ services: checkmk: - image: checkmk/check-mk-raw:2.3.0-latest - container_name: checkmk - restart: unless-stopped - ports: - - "5000:5000" # UI - - "6556:6556" # AGENT + image: "checkmk/check-mk-raw:2.4.0-latest" + container_name: "monitoring" + environment: + - CMK_PASSWORD=${CMK_PASSWORD:-password} + - TZ=${TZ:-Europe/Moscow} + - CMK_SITE_ID=cmk volumes: - - ./checkmk:/omd/sites - - environment: - CMK_SITE_ID: "cmk" - + - checkmk:/omd/sites + tmpfs: + - /opt/omd/sites/cmk/tmp:uid=1000,gid=1000 + ports: + - 5000:5000 + - 6776:8000 + - 6556:6556 + restart: always labels: - "traefik.enable=true" - "traefik.docker.network=traefik-proxy" @@ -36,6 +39,8 @@ services: networks: - traefik-proxy +volumes: + checkmk: networks: traefik-proxy: - external: true + external: true \ No newline at end of file