spectado/mrtg

By spectado

Updated about 2 years ago

Simple MRTG docker container

Image
0

82

SPECTADO/mrtg

How to use

you will need a mrtg.cfg file (you can use cfgmaker)

The collected data goes to /mrtg_data in the container and you probably want to preserve it between restarts

example of docker compose (with nginx to server the static files)

version: "3.9"
networks:
  default:
    name: "mrtg_network"
services:
  mrtg:
    image: spectado/mrtg
    deploy:
      mode: global
      placement:
        constraints: [node.labels.type == mrtg]
    volumes:
      - /mrtg/data:/mrtg_data
      - /mrtg/mrtg.cfg:/etc/mrtg.cfg
  nginx:
    image: "nginx"
    deploy:
      mode: global
      placement:
        constraints: [node.labels.type == mrtg]
    ports:
      - "80:80"
    volumes:
      - /mrtg/data:/usr/share/nginx/html

Docker Pull Command

docker pull spectado/mrtg