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
Content type
Image
Digest
sha256:3f784ea73…
Size
24.1 MB
Last updated
over 1 year ago
docker pull spectado/mrtg