Node-red + docker-compose (updating flows, and dependencies)

Hey,

I am planning to run node-red using docker (docker-compose in particular). The initial run works and obviously is very simple if you follow this instruction.

However things are getting a bit more complex if a) you are inexperienced with docker-compose b) you need some more configs.

I would like to about advice how to setup following things:

  • How to set / add dependencies to package.json using nodered/node-red ??
  • How to load / backup flows.json?

I have setup very initial repo:

Thanks in advance for any advice!

2 Likes

If your Node-RED data directory is bind-mounted at volumes/ and named node-red then set the permissions for the data to be persistent.

chown -R 1000:1000 /volumes/node-red
1 Like