This is what thay compose looks like now:
services:
jellyfin:
image: jellyfin/jellyfin
user: 1000:1000
network_mode: 'host'
volumes:
- /DATA/AppData/jellyfin/config:/config
- /DATA/AppData/jellyfin/cache:/cache
- /DATA/AppData/jellyfin/media:/media
- /mnt/drive1/media:/mnt/drive1/media
- /mnt/drive2/Jellyfin:/mnt/drive2/Jellyfin
- /mnt/drive3:/mnt/drive3
- /mnt/drive4/media:/mnt/drive4/media
- /mnt/drive5/jellyfin:/mnt/drive5/jellyfin
- /mnt/drive6/jellyfin:/mnt/drive6/jellyfin
runtime: nvidia
deploy:
resources:
reservations:
devices:
- driver: cdi
device_ids:
- nvidia.com/gpu=all
- /dev/nvidia-caps:/dev/nvidia-caps
- /dev/nvidia0:/dev/nvidia0
- /dev/nvidiactl:/dev/nvidiactl
- /dev/nvidia-modeset:/dev/nvidia-modeset
- /dev/nvidia-uvm:/dev/nvidia-uvm
- /dev/nvidia-uvm-tools:/dev/nvidia-uvm-tools
count: all
capabilities: [gpu]
Edit: when I try and compose up it says “yaml: lin 30 mapping values are not allowed in this context” when I remove line 30 and 31 the output is “validating /DATA/AppData/jellyfin/docker-compose.yml: services.jellyfin.deploy.resources.reservations.devices.1 must be a mapping”
THANK YOU ALL!
It was a problem with my docker compose file! I didn’t list the needed devices from the jellyfin documentation. I thought the Container was detecting the gpu but it wasn’t. Docker exec <container-name> nvidia-smi is your friend!
Edit: so now it doesnt kick me out saying the playback failed but its just a black screen with 4k media
Edit 2: my bad forgot to enable some transcoding settings in jellyfin lol