DATA_DIR doesn't contain anything -- resulting data loss #917
-
Hi, I recently set up hoarder locally on my system to test it out. I noticed that even though I set DATA_DIR, it never populated the chosen directory with any files. I then had to factory reset my docker installation for unrelated reasons, and I appear to have inadvertently wiped my hoarder data. This leads me to believe that I followed the Docker Compose instructions for getting started, and ran Versions: |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
you shouldn't touch the DATA_DIR variable. You almost never want to change it. What you want to change is what gets mounted to that dir. In the default compose file, it says mount the volume "data" to /data. If you want to mount a custom path on disk, don't use a docker volume and instead add the path of your folder under the "volume" field in the docker compose. |
Beta Was this translation helpful? Give feedback.
-
I came across this issue too, I wasn't paying attention when I copied the docker compose file! I had the message |
Beta Was this translation helpful? Give feedback.
I can see how the documentation can be misleading, I'll fix that, sorry for the hassle.
What you want to do is:
Revert back DATA_DIR to be '/data' and change the line that says:
data:/data
to be
/Users/Madgvox/.hoarder/data:/data
Once you do that and do docker compose up, you should see the db.db appear