LibreNMS Docker migrate

Hello

I’m wondering how to migrate docker data to another docker instance, I couldn’t find any documentation for this.
I have used docker-compose to run librenms using following compose config

Many thanks
Jay

Theoretically you would just copy that whole folder on the host, it should have created your volume folders in the same directory as your docker-compose.yml etc… If you’re using the same docker-compose file then it will just mount them all again.

However for safety i would backup the sql database e.g (replace 99673d0ccb13 with your mariaDB container ID)

docker exec 99673d0ccb13 sh -c 'exec mysqldump --all-databases -uroot -p"$MYSQL_ROOT_PASSWORD"' > librenmsbackup$(date +%s).sql

If you get stuck, then this might help you identify the important files
https://docs.librenms.org/Support/FAQ/#how-do-i-move-my-librenms-install-to-another-server