-
Notifications
You must be signed in to change notification settings - Fork 583
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Persistence #1
Comments
Hello Andreas The docker-compose file uses the "volumes:" command to link files and folder from inside the container to a folder on your pi's sd card. so that when you stop them the next time you start them they should be there. for example :
"$PWD" is the "present working directory" as in the folder created when you did the git clone command. if you navigate to that folder you should see the directories for the persistent storage. what you can do is specify a direct path in stead of the $PWD like
here is what is inside my nodered persistent storage I have a folder in my home directory called "dockers" remember that you need to change the folderfix.sh to match the same path as you chose. I made a small change the the folderfix.sh file to make my file more concistent. if there is a specific image that does not keep its data let me know, maybe i missed a specific volume. EDIT: What could be useful for the novice user is to create a script on the desktop to start and stop the compose stack that way. I can write a script that creates one on the destkop similar to the folderfix. For me I disable the desktop and use ssh |
When i created the gitignore file i made it exclude the data folders. This was to make sure that if i did a commit none of my data was coming with. (why i chose $PWD in the first place) |
I tried now to continue with this project. It is quite hard for me with my current level of knowledge. After a few hours, I got node-red running. But it says, it is based on an unsupported node.js version :-( |
Hi,
I installed your repo on my new 4G Raspberry and it works! Thank you.
Now I would like to add all my "customization". But of course, I do not want to lose it when I stop the container. Can you help me here?
Regards
Andreas
The text was updated successfully, but these errors were encountered: