view the rest of the comments
Selfhosted
A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.
Rules:
-
Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.
-
No spam posting.
-
Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.
-
Don't duplicate the full text of your blog or github here. Just post the link for folks to click.
-
Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).
-
No trolling.
Resources:
- selfh.st Newsletter and index of selfhosted software and apps
- awesome-selfhosted software
- awesome-sysadmin resources
- Self-Hosted Podcast from Jupiter Broadcasting
Any issues on the community? Report it using the report flag.
Questions? DM the mods!
This appears to be the exact same problem as https://github.com/mdshack/shotshare/issues/31
For testing I just spun up a VM with Docker, I tried the same compose file as you. I found I had to use the volume instead of a bind mount for
/app/storage
.This compose file should work.
Oh wow, thanks for trying this. It is working indeed.
I am an absolute begginer so let me ask. Where is
shotshare_data
on my machine ? Is it in docker volumes ( like/var/lib/docker/volumes/
) ? Is there a way I can store data in/srv/dev-disk-by-uuid-7fe66601-5ca0-4c09-bc13-a015025fe53a/Files/Shotshare/
?It will be stored in
/var/lib/docker/volumes
, you can find the exact location by inspecting the volume. Usedocker volume ls
to list the volumes, and dodocker volume inspect
replacing with the one from the list. Look for "Mountpoint", that is the exact location. You could try copying that to bind mount location, though I can't be sure if it will continue to work.I just did another test.
You should be able to create the directories manually. I cheated by simply cloning the repo and copying them to the bind mount location like so. You can use the bind mount method like you wanted.
Ugh permission issues...
I have no idea how the shotshare image works, but an easier method is to specify the puid/pgid in the docker-compose:
If the docker image supports it, the
--user
flag is also helpful :).I know those works with volume mounts, no idea about bind mounts.
Oh that's great.
So do I need to keep this ?
No, since you are using the bind mount, you do not need to use the volume.
Thank you very much !
You're welcome! Also thanks for asking this question, I hadn't seen ShotShare before, it looks useful.