# Compose Docs: # https://jellyfin.org/docs/general/installation/container/?method=docker-compose # Transcoding Docs # https://jellyfin.org/docs/general/post-install/transcoding/hardware-acceleration/nvidia services: jellyfin: image: jellyfin/jellyfin container_name: jellyfin user: uid:gid ports: - 8096:8096/tcp - 7359:7359/udp volumes: - /path/to/config:/config - /path/to/cache:/cache - type: bind source: /path/to/media target: /media - type: bind source: /path/to/media2 target: /media2 read_only: true # Optional - extra fonts to be used during transcoding with subtitle burn-in - type: bind source: /path/to/fonts target: /usr/local/share/fonts/custom read_only: true restart: 'unless-stopped' # Optional - alternative address used for autodiscovery environment: - JELLYFIN_PublishedServerUrl=http://example.com # Optional - may be necessary for docker healthcheck to pass if running in host network mode extra_hosts: - 'host.docker.internal:host-gateway' runtime: nvidia deploy: resources: reservations: devices: - driver: nvidia count: all capabilities: [gpu]