I see you’ve got some downvotes, but without anyone suggesting a solution. You can add the mount points in the docker compose file and then configure Jellyfin to read from the path(s) mounted in the container (/media/movies) Eg: volumes:
local path : path in container
- /mnt/storage/media/movies:/media/movies
gravitywell@lemmy.ml 1 week ago
Why is it not mounted on the host/cointainer? I dont think you are using jellyfin “wrong” but its not like you cant just configure a mount point if you wanted to use jellyfin with it.
That is an interesting thing to point out though, im not actually sure but i think they used to support smb shares directly, i might just be thinking of kodi though.
yournamehere@lemm.ee 1 week ago
it is not mounted to the container because that is a shit solution. the host would need to mount it and pass that to tge container. emby i stop the container and no connection to the share. mounted in host it would still be there. not to mention the hassle this also means more traffic. an idea why jellyfin doesnt do shares like emby?
GunnarGrop@lemmy.ml 1 week ago
Maybe because it’s not an obviously wanted feature? But I’m just guessing. You should request it and see what happens, maybe more people want it. I’ve never even thought about it, since in the case of Podman/docker it’s so “obvious” and easy to just mount network shares to the host first. And in the case of Kubernetes you can just mount NFS shares directly into pods.
greyfox@lemmy.world 1 week ago
Docker(/Compose) can do mounts directly to the container as well.
https://blog.stefandroid.com/2021/03/03/mount-nfs-share-in-docker-compose.html
https://docs.docker.com/engine/storage/volumes/#create-a-service-which-creates-an-nfs-volume
I’ve used NFS mounts with docker compose before but I see the second link also includes an example for CIFS as well.
yournamehere@lemm.ee 1 week ago
“obviously”… dont get over yourself. theres been requests.plenty.
migration is also much easier. i think only edgelords prefer mouting in host and container.
EncryptKeeper@lemmy.world 1 week ago
Im using UnRAID for storage and getting another Linux machine to mount a share in boot has been an exercise in futility so I get it.
raef@lemmy.world 1 week ago
Using nfs on ext4 file systems, I’ve always just added them to fstab and it works just like that
EncryptKeeper@lemmy.world 1 week ago
Yeah it definitely does not work in this case. Spent many hours online looking through threads of people with the same problems, but no real solution. I think it has something to do with Unraids MFS implementation. Might be a little older. Only way to get it to work is have a script run every 10 minutes to check for the drive and if it’s not mounted, mount it. Works well enough.