Deploying
I wrote a script to deploy libreNMS with the configuration that SCN uses. The repo is here
Software requirements
Only tested on debian and ubuntu. Not sure what else it works on but it could work on other linux distros
Steps
- Install docker if it is not installed already
- Install docker compose if it is not installed already
- Instal unzip if it is not installed already
- Check out this repo
- If you want to restore a previous install, provide a sqldump named
librenms.sql
flat in this checked out repo. There is a helper script calledget_database_from_currently_running_server.sh
to get the database off of the non dockerized install (needs ssh access to the server) - If you want to restore the graphs too, you can provide a file named
rrd.zip
flat in the checked out repo which is just the rrd folder ziped up. There is a helper script calledget_rrd_zip_from_currently_running_server.sh
to get the rrd zip from the non dockerized install (needs ssh access to the server) - Run
./deploy.sh
- builds the librenms image
- builds the database image with/without the backup
- Starts the service using
docker compose
. This creates 2 shared volumes in thecompose
directory- The
librenms
folder is for the librenms docker images to share configuration data including rrd files - The
db
volume is the database
- The
- unzips the rrd folder in the rrd directory of the shared
librenms
volume
The UI will run on port 8000