This guide uses Docker Compose to run Munin network monitoring.
For Docker installation, see Docker.
mkdir -p /opt/munin/{data,config}
cd /opt/munin
Create docker-compose.yml:
services:
munin:
image: flemke/docker-munin:latest
container_name: munin
hostname: munin
ports:
- "80:80"
volumes:
- ./data:/var/lib/munin
- ./config:/etc/munin
environment:
- TZ=UTC
cap_add:
- SYS_ADMIN
restart: unless-stopped
docker compose up -d
Note: Initial graph generation may take 5-10 minutes.
Check container status:
docker compose ps
View logs:
docker compose logs -f munin
Access web UI at http://SERVER_IP
docker compose exec munin munin-cron
docker compose restart munin
docker compose down
docker compose pull
docker compose up -d
./data directoryOn monitored hosts (Debian/Ubuntu):
apt-get install munin-node
Configure /etc/munin/munin-node.conf:
allowed_hosts your-munin-server-ip
Add to Munin server configuration:
[hostname]
address hostname
use_node_name yes
Deploying Munin in containers for production? Our consulting covers:
Get expert help: office@linux-server-admin.com | Contact Page