spectado/mrtg
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
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 spectado/mrtg