Add Jellyfin with NVIDIA GPU support for workstation

This commit is contained in:
2025-12-14 21:15:05 -08:00
parent 5fea90c678
commit 53d6b23a5d
2 changed files with 38 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
services:
jellyfin:
image: jellyfin/jellyfin:latest
container_name: jellyfin
user: 1000:1000
group_add:
- '105' # render group for GPU access
network_mode: 'host'
volumes:
- /home/stray/docker/jellyfin/config:/config
- /home/stray/docker/jellyfin/cache:/cache
- /mnt/syn02/data:/media:ro
runtime: nvidia
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: all
capabilities: [gpu, video, compute, utility]
environment:
- NVIDIA_VISIBLE_DEVICES=all
- NVIDIA_DRIVER_CAPABILITIES=all
restart: unless-stopped