r3-team / r3

REI3 - Free and open low code
https://rei3.de
MIT License
359 stars 47 forks source link

Docker: node number increases #62

Closed TechInterMezzo closed 2 months ago

TechInterMezzo commented 2 months ago

Everytime i restart my R3 docker container with docker compose up the node number increases. Where is the node id/number saved? Do I need to mount an additional volume to my docker container to make the node number persist between those restarts?

r3-gabriel commented 2 months ago

I have not had this issue before. Did you use the original compose file or did you make changes? If yes, please share your compose file.

TechInterMezzo commented 2 months ago

You are right. It does not happen with the official image and docker compose. So I researched what I did differently. I made a Dockerfile and created the config.json in my own routine. But I didn't realize that the config file should be writable and persistent because the nodeId is written there. So the nodeId was empty on every restart.

r3-gabriel commented 2 months ago

I was initially confused what you meant with node number - but your explanation makes sense now. Thank you for the feedback.