Comment on Selfhosting Sunday! What's up?
Rin@lemmy.zip 2 weeks ago First, thank you much for suggesting BookOrbit! I actually just installed it because I was having a lot of issues with Grimmory making dupes of books in every folder and couldn’t figure out why it was doing it. Haven’t had any issues with BookOrbit and I really like that it’s got achievements. Plus, the less RAM usage is nice.
I’m using docker and docker compose files! Thank you for answering, the last time I took a crack at selfhosting, I really felt lost and screwed a lot up, so I wasn’t sure if that was even possible.
glizzyguzzler@piefed.blahaj.zone 2 weeks ago
The docker compose file is great, clear once you get used to all its little sections. For volumes I only use what they call “bind mounts” which are where you have a folder on your system connected to the folder in the container. As opposed to the “docker volumes” which are internal to docker.
And with those it’s super easy to just be like in the volume subsection:
- /path/to/local/drive:/container/database:rw,noexec,nosuid,nodev,Z- /path/to/network/drive:/container/media:rw,noexec,nosuid,nodev,ZThe
:rw,noexec,nosuid,nodev,Zat the end is a great extra security thing that never causes problems. rw means read-write, you can switch it to ro for read-only if you’ve got something you want the container to only read from but not be able to modify. I use that for jellyfin’s media since I don’t want it doing anything but reading it. The noexec means don’t let executables be run from the folder, never should happen so it just prevents a sick hack from being put in the folder and run. I forget what the others do but they’ve never been a bother. And Z means only one process can access the volume, you can switch it to lower case z to let multiple processes access the volume - and I’m not sure it does anything without SELinux going which I think only fedora does by default right now.Enjoy the info dump!
Thank you again! I actually really appreciate the infodump and it was well explained. I’ve made notes on this in my selfhosting documentation so I can reference it later! I didn’t even know the difference between “docker volumes” and “bind mounts” really.