Does anyone have a compose.yaml for an Nvidia GPU that works that they would like to share? Here’s my current file, it gives a white screen with “server error” on it: https://pastebin.com/AaV17cTz
I went through Jellyfin’s instructions on setting a GPU up, but the instructions weren’t clear (in my opinion) so who knows if it’s correct. I installed some Nvidia tools as a prerequisite and ‘nvidia-smi’ shows the card. I attached my Jellyfin settings from before it self-destructed according to Nvidia’s transcoding matrix (which also wasn’t descriptive enough in my opinion), do they look right for a 2080?
Update: after making this post, and changing nothing, it suddenly works
Here’s mine, no judging for how I set the ip
name: jellyfin services: jellyfin: container_name: jellyfin.live networks: mynet: ipv4_address: 192.168.5.3 ports: - 8096:8096 volumes: - jellyfin-config:/config - jellyfin-cache:/cache - type: bind source: /mnt target: /Media Disk 1 - type: bind source: /mnt target: /Media Disk 2 - type: bind source: /mnt target: /Media Disk 3 environment: - HEALTHCHECK_URL=192.168.5.3 restart: unless-stopped deploy: resources: reservations: devices: - driver: nvidia count: all capabilities: - gpu image: jellyfin/jellyfin:latest networks: mynet: external: true name: mynet volumes: jellyfin-config: external: true name: jellyfin-config jellyfin-cache: external: true name: jellyfin-cacheThe section on the GPU looks like yours. I had to do something to get it working, but it’s been forever.
This works for me, rtx 4060
jellyfin: image: jellyfin/jellyfin:latest container_name: jellyfin user: 108:114 network_mode: 'host' environment: - JELLYFIN_CACHE_DIR=/var/cache/jellyfin - JELLYFIN_CONFIG_DIR=/etc/jellyfin - JELLYFIN_DATA_DIR=/var/lib/jellyfin - JELLYFIN_LOG_DIR=/var/log/jellyfin - JELLYFIN_PublishedServerUrl=URL_REDACTED - NVIDIA_DRIVER_CAPABILITIES=all - NVIDIA_VISIBLE_DEVICES=all volumes: - /etc/jellyfin:/etc/jellyfin - /mnt/driveF/jellyfin/cache:/var/cache/jellyfin - /mnt/driveF/jellyfin/data:/var/lib/jellyfin - /mnt/driveF/jellyfin/log:/var/log/jellyfin - /mnt/Movies:/movies - /mnt/TV:/tv - /mnt/Music:/music runtime: nvidia deploy: resources: reservations: devices: - driver: nvidia count: all capabilities: [gpu] restart: 'unless-stopped' extra_hosts: - "host.docker.internal:host-gateway"The biggest concern here would be 1) have you installed the Nvidia container toolkit, and 2) how are you passing the GPU into the Jellyfin docker container.
I’ve got an Ansible-playbook that takes care of the Nvidia stuff. I’ve also got a compose file I can share. Will edit this post when I can provide a link.
- yes
- in my compose file, I’ve set the extra variables that (supposedly) pass the GPU according to Jellyfin’s instructions
In your compose file, make sure you’ve added
runtime: nvidia.You also don’t need to deploy the resources and reserve the GPU, you can remove the entire
deploysection when using the nvidia runtime.
deleted by creator