Multiple Node-Red, with Multiple Global Storage

So I have a unique situation in that I run numerous instances of Node-Red (I can't change this). I also need to use global variables with the local file system in case the server reboots (which it does once a week).

So, is there a way in the settings to specify different folders so that each instance i have running will use a different storage location for their global files.

Any examples would be awesome.

You can specify the location to store the context in each instances settings.js
https://nodered.org/docs/api/context/store/localfilesystem

On the command line you can specify the location of the user directory (default ~/.node-red) using the -u option. This lets you give each instance its own directory for settings, flow files, context etc.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.