LibreNMS Docker Image

I am new to LibreNMS. I was wondering if LibreNMS has docker images and if yes, what is the base OS of LibreNMS docker images? Thanks and regards.

I think there are few unofficial ones out there.

This what we have. https://docs.librenms.org/#Installation/
The install is easy to do.

Yeh use the jarischaefer/docker-librenms image its the best one. Comes with all the optimisations already. Then you can switch between versioning tags too if you have a problem :smiley:

Heres a sample of a docker-compose.yml file:

version: '2.1'
services:
  nms:
     restart: unless-stopped
     image: jarischaefer/docker-librenms
     ports:
       - "80:80"
       - "514:514"
       - "514:514/udp"
     links:
       - mysql:mysql
     environment:
       - DB_HOST=mysql
       - DB_NAME=librenms
       - DB_USER=librenms
       - DB_PASS=librenms
       - PUID=0
       - PGID=101
       - TZ=Europe/London
       - BASE_URL=/
       - POLLERS=8
       - ENABLE_SYSLOG=true
     volumes:
       - ./logs:/opt/librenms/logs
       - ./rrd:/opt/librenms/rrd
       - ./conf/config.docker.php:/opt/librenms/config.docker.php
     depends_on:
       - mysql
     stdin_open: true
     tty: true
     logging:
       driver: "json-file"
       options:
         max-size: "5m"
         max-file: "2"
  mysql:
       restart: unless-stopped
       image:
         mysql
       environment:
         - MYSQL_ROOT_PASSWORD=librenms
         - MYSQL_DATABASE=librenms
         - MYSQL_USER=librenms
         - MYSQL_PASSWORD=librenms
       volumes:
         - ./mysql:/var/lib/mysql
         - ./mysql/conf/docker.cnf:/etc/mysql/conf.d/docker.cnf
2 Likes

Thanks very much Chas!

1 Like