Could someone help me understand the difference between the volumes below? I got this docker-compose examples from the Node-Red website and I don’t understand why there are 2. I want to be able to preserve the data if I have to move host or I need to recreate the container. If I want to store the data /home/docker/node-red where would I put it and is this the correct syntax?
Also if you dont use the network part to anything, you can also remove this part to have docker create its default network (here you just define it especially), then you can cook your compose file down to: