Comments (3)
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 :
volumes:
- $PWD/influxdb/data:/var/lib/influxdb
"$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
volumes:
- /home/pi/DockerStorage/influxdb/data:/var/lib/influxdb
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:
I accidentally ran the docker-compose up -d
in my nodered folder and created extra folders so i had to fix the picture. that was the danger of using the $PWD, i think specifying a direct path is better for the average user
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
from iotstack.
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)
If however you want to specific data to stay eg. your grafana plugins and make them part of your git project then you should add them directly
from iotstack.
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 :-(
Now I would like to configure influxdb. But I do not know how to get terminal access to the container...
Would it be a possibility to have a Skype session with you to get me up to speed? If everything runs I would also like to add a VPN container to get remote access. I think, this would be a neat project for many of us with a home server...
If you want to spend your time, my skype name is #######.
from iotstack.
Related Issues (20)
- InfluxDb data not in backup HOT 3
- menu.sh error HOT 2
- unable to stop and remove Hassio containers in IOTstack HOT 1
- zigbee2mqtt
- menu.sh just checks for current version HOT 2
- Home Assistant Native keeps coming back after removal HOT 1
- Zigbee2MqttAssistant: Unable to connect to MQTT server mosquitto HOT 2
- chown -R 1883:1883 ./volumes/mosquitto does not accept "Y" HOT 1
- ImportError: No module named 'blessed' HOT 1
- running rtl_433 container problem HOT 7
- influxdb.conf ... changing the retention of data HOT 1
- how to retrive an old image HOT 5
- How Do I get rid of Pihole ? I tried everything. HOT 5
- IOT stack vs raspberry pi OS bullseye HOT 5
- installation script incorrectly prompting version types HOT 2
- Concerned about prerequisites HOT 3
- pi.hole only works intermittently. HOT 3
- Cannot start service nodered /dev/ttyAMA0 HOT 2
- can't install new nodes in Node-Red due to no connection of node-red container with internet HOT 1
- i2c in nodered HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from iotstack.