I have my Node-Red on the same Synology box as I do Home Assistant. Both are through Docker. I am having trouble getting Node-Red to mount the data folder to my Docker folder on the NAS. This way when I update Node-Red my flows.json file aren’t cleared.
Does anyone know if this is a bug, has had the same issue \been able to resolve it, or have I setup something incorrectly?
No error message, it works, just everything is contained within the container itself. If the container is ever deleted it’ll delete the flows and nodes I installed.
I’ve been able to make a copy of the data folder within the container as a backup but that’s not a long term solution.
Export your flows, delete your container and recreate it to map your volume. Show us your run parameters/docker-compose and we can let you know if you’re missing something.
I’m still trying to figure out what’s different from this docker run -it -p 1880:1880 -v /volume1/docker/nodered/data:/data --name mynodered nodered/node-red-docker:v8
vs what I was doing manually. But the above seems to work and keeps persistent data.
And you never shared the error messages you got with those other directories.
Trying random directories doesn’t do any good when the application is only looking at one path /data. That is the only directory you should have used, and if that wasn’t working, you should have provided some information as to what error message you were getting.