• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to save node-red flows persistent?
#2
Hi there,

here is one possibility:

The Node-RED in the container has a working directory under /root/.node-red . In this folder the Node-RED will save the flow every time you do a deploy.

So what you could do is to keep the folder /root/.node-red saved to "somewhere" for those times where you do a restart/redeploy of the container.

Here is now to proceed: Use the "Volumes" function in the left menu of the Docker Web-UI. Then give your volume a name like "nodered" and click "create volume". This will then create a local volume/storage. Such a volume is mappable.

Then go to your "container create" dialog and use the possibility there to map specific folders of a container to a volume. Then as container source path use "/root/.node-red" and as volume your "nodered" volume ... then create your container as usual.

   

Whenever you now start/restart/redeploy you Node-RED container again with the same volume mapped, then this container will use the contents of the mapped volume as working directory.

Thx
Armin
You never fail until you stop trying.“, Albert Einstein (1879 - 1955)

  Reply


Messages In This Thread
How to save node-red flows persistent? - by hsammer - November-5th-2019, 02:25 PM
RE: How to save node-red flows persistent? - by Armin@netPI - November-5th-2019, 02:59 PM
RE: How to save node-red flows persistent? - by hsammer - November-5th-2019, 03:50 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Node Red configuration LucioFiam 3 1,647 November-30th-2022, 05:14 PM
Last Post: Armin@netPI
  secure node-red with a username and password Christian_Rau 3 2,842 December-3rd-2021, 11:06 AM
Last Post: Armin@netPI
  cifx0 and Node-Red fabio1975 5 3,098 November-22nd-2021, 01:13 PM
Last Post: Armin@netPI
  Node red web UI issue DSongra 3 3,149 July-22nd-2021, 02:47 PM
Last Post: Armin@netPI
  Node-RED 'projects' possible on netPI? JG_KIT 2 2,304 July-20th-2021, 01:11 PM
Last Post: JG_KIT
  Node-RED: OpcUa Client node tad 4 4,394 June-9th-2021, 08:51 AM
Last Post: tad
  Accessing a modbus device connected to RTE port from Node-RED tad 10 7,903 October-2nd-2020, 07:21 AM
Last Post: Armin@netPI
  5 x NL 50-Mpi and Node Red like colector data? Jotarod 4 3,885 September-14th-2020, 01:59 PM
Last Post: Armin@netPI
  Node-Red "http in"-Node not working DWxPro 8 7,488 June-19th-2020, 01:12 AM
Last Post: DWxPro
  using node.js on NIOT-E-TP151-EN-RE COswald 9 10,103 May-20th-2020, 12:54 PM
Last Post: Armin@netPI

Forum Jump:


Users browsing this thread: 1 Guest(s)