Files
homelab/checkmk/compose.yaml
T

46 lines
1.3 KiB
YAML

services:
checkmk:
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
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"
# 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
volumes:
checkmk:
networks:
traefik-proxy:
external: true