Migrate to official docker #5415
-
I have been running a couple of docker instances of meshcentral using the uldiseihenbergs/meshcentral image as it was the only one I could get working years ago when I tried. Now that I see there is an official docker setup, is there a best way to accomplish this without having to redo all the agents? On the one I am running now I have the backup, data, files, and web folders mapped to persistent storage. I cannot find the command I used to start the instances though as that has been a few years now. Should it be as simple as editing the docker-compose.yml for the official and point the data locations to the existing files? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
in theory yes https://github.com/Ylianst/MeshCentral/tree/master/docker#docker-composeyml (ignore the env section unless u use it) |
Beta Was this translation helpful? Give feedback.
-
As an update to this: doing as @si458 said worked. However if you are currently running another docker setup double check your config file in the data folder. Mine was still pointing to /home/node/ when this container puts everything in /opt/meshcentral/. So a quick vi search and replace all did the trick. |
Beta Was this translation helpful? Give feedback.
in theory yes
just make sure u map the volumes correctly
meshcentral-data volume from old image
->/opt/meshcentral/meshcentral-data
meshcentral-files volume from old image
->/opt/meshcentral/meshcentral-files
meshcentral-backups volume from old image
->/opt/meshcentral/meshcentral-backups
meshcentral-webvolume from old image
->/opt/meshcentral/meshcentral-web
https://github.com/Ylianst/MeshCentral/tree/master/docker#docker-composeyml (ignore the env section unless u use it)