This is how mine works, with a Nvidia GPU
services:
jellyfin:
volumes:
- jellyfin_config:/config
- jellyfin_cache:/cache
- type: tmpfs
target: /cache/transcodes
tmpfs:
size: 8G
- media:/media
image: jellyfin/jellyfin:latest
restart: unless-stopped
deploy:
resources:
reservations:
devices:
- driver: nvidia
device_ids:
- "0"
capabilities:
- gpu
Temp files for transcoding. No need to hit the disk.