services: jellyfin: image: nyanmisaka/jellyfin:latest container_name: jellyfin network_mode: 'host' volumes: # manual replace - $HOME/.config/jellyfin:/config - jellyfin-cache:/cache - type: bind source: /media target: /media # Optional - extra fonts to be used during transcoding with subtitle burn-in # just use Noto fonts. - 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 # hidden. environment: - JELLYFIN_PublishedServerUrl=https://blablabla.local # 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