2025-03-31, 03:12 PM
(This post was last modified: 2025-03-31, 03:15 PM by awake. Edited 2 times in total.)
Hello everyone! I've installed Jellyfin using Docker because setting it up with a compose file seemed to be the most straight forward way to do it. Howver, I've had some hiccups when it came to directory- and file-permissions.
My compose file looks like the following with 1001 being the ID for my user and group (both having the same name (richard)):
As you can see, I'm mounting the media from the home directory. I'm at the same time I'm accessing the
Should I move the entire mount point to a more public space such as
My compose file looks like the following with 1001 being the ID for my user and group (both having the same name (richard)):
Code:
services:
jellyfin:
image: jellyfin/jellyfin
container_name: jellyfin
user: 1001:1001
network_mode: 'host'
volumes:
- /home/richard/jellyfin/config:/config
- /home/richard/jellyfin/cache:/cache
- type: bind
source: /home/richard/cinema/Movies
target: /media/movies
- type: bind
source: /home/richard/cinema/Shows
target: /media/shows
read_only: true
restart: 'unless-stopped'
# Optional - alternative address used for autodiscovery
environment:
- JELLYFIN_PublishedServerUrl=http://<my_ip>:8096
# Optional - may be necessary for docker healthcheck to pass if running in host network mode
extra_hosts:
- 'host.docker.internal:host-gateway'
devices:
- /dev/dri/renderD128:/dev/dri/renderD128 # I use this because I'm using QSV and have to use it according to the documentation, right?
As you can see, I'm mounting the media from the home directory. I'm at the same time I'm accessing the
cinema
directory from a computer with a user with elevated priviledges ("admin"). The problem occurs if I paste a file from my computer (via SMB, macOS is not particularly great in this area it seems but I diverge) into the cinema directory, it's being pasted with "admin" as user and group. This leads to "richard" not being able to play the file in Jellyfin and I have to chmod
the newly added files/directories to be able to play the files.Should I move the entire mount point to a more public space such as
/media
and will this even solve my problem?