services: jellyfin: image: jellyfin/jellyfin container_name: jellyfin user: uid:gid network_mode: 'host' volumes: - /home/debian/config:/config - /home/debian/cache:/cache - type: bind source: /media/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: /usr/share/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'