Moving the flows.json file or settings.json

Hello everyone,

I would like to separate the flows.js file from the settings.js file into a folder, for example /data/save/flows.json or /data/save/settings.json. Is it possible?

The goal is to back up the "save" folder using a bind mount instead of a volume in Docker

Thank you for your help.

Run node-red --help and it will give you a number of options, such as where to get the settings file from.
I don't use docker so don't know how to specify the command line options though.

See the Startup section under - Running under Docker : Node-RED -e FLOWS= to set flows...

Good morning,

In fact everything works with the FLOW environment variable, it doesn't work if I change it in settings.js I don't understand why unfortunately.

Thanks for your help