does your settings.js reside in the same directory as the docker-compose file? Because . means the current directory and normally the settings.js and the docker-compose.yaml do not reside in the same directory.
thx for the quick responese. So it is my lack of docker knowledge.
To answer the question "permissions"
-> Yes, the folder is in the Documents folder of my Mac user and the /Users is added by Docker Desktop by default. So this works.
What I've tried since your answer:
In my root of the project I've created a new folder "data" where all the NodeRed stuff is moved. flows.json, settings.js and everything else…
It looks now like this
you haven't made any changes to the settings.js specifically:
/** The file containing the flows. If not set, defaults to flows_<hostname>.json **/
flowFile: 'flows.json',
which is at the top of the settings.js file.
nor this:
/** By default, all user data is stored in a directory called `.node-red` under
* the user's home directory. To use a different location, the following
* property can be used
*/
//userDir: '/home/nol/.node-red/',
the userDir must be commented out in the settings.js or set to /data
Since the Dockerfile for the image you're using has an entrypoint.sh which determines how node red is started:
I solved the problem. The docker setup was right, everything was ok. The only thing in my settings.js was, that I required playwright(already installed locally) which was not installed on the new NodeRed docker instance… therefore the file was not useable.
uncommenting the line helped and everything worked again.