services: jellyfin: image: nyanmisaka/jellyfin:latest container_name: jellyfin network_mode: 'host' group_add: # needs mapping from localhost, i.e. `getent group render | cut -d: -f3`. # also probably needs manual `groupadd -g 993 render` inside. - '993' volumes: - /opt/jellyfin:/config - jellyfin-cache:/cache - type: bind source: /media target: /media # Optional - extra fonts to be used during transcoding with subtitle burn-in - type: bind source: /usr/share/fonts/opentype target: /usr/local/share/fonts/custom read_only: true devices: - /dev/dri:/dev/dri restart: 'unless-stopped' # Optional - alternative address used for autodiscovery # environment: # - JELLYFIN_PublishedServerUrl= # Optional - may be necessary for docker healthcheck to pass if running in host network mode extra_hosts: - 'host.docker.internal:host-gateway' volumes: jellyfin-cache: driver: local