
#jellyfin #docker #synology #nas #movie #tv-show


``` yaml
services:
  jellyfin:
    image: nyanmisaka/jellyfin:latest
    container_name: jellyfin
    # 群晖建议使用具体的 UID:GID
    user: "1026:100" 
    ports:
      - 8096:8096/tcp
      - 7359:7359/udp
    volumes:
      - /volume1/docker/jellyfin/config:/config
      - /volume1/docker/jellyfin/cache:/cache
      - /volume2/movie:/media
      - "/volume1/TV shows:/media2"
      - /volume1/docker/jellyfin/fonts:/usr/local/share/fonts/custom:ro
    environment:
      - JELLYFIN_PublishedServerUrl=http://jellyfin.ishenwei.online
      - TZ=Asia/Shanghai
    # 核心优化：挂载硬件渲染设备以实现 Intel QuickSync 转码
    devices:
      - /dev/dri:/dev/dri
    restart: unless-stopped
    extra_hosts:
      - 'host.docker.internal:host-gateway'
```