services: jellyfin: image: jellyfin/jellyfin container_name: jellyfin #user: uid:gid network_mode: 'host' volumes: - /Volume1/public/jellyfin/config:/config - /Volume1/public/jellyfin/cache:/cache - type: bind source: /Volume1/public/jellyfin/media/movies target: /movies - type: bind source: /Volume1/public/jellyfin/media/series target: /series read_only: true # Optional - extra fonts to be used during transcoding with subtitle burn-in restart: 'unless-stopped' # Optional - alternative address used for autodiscovery environment: - JELLYFIN_PublishedServerUrl=http://192.168.68.72 # Optional - may be necessary for docker healthcheck to pass if running in host network mode extra_hosts: - 'host.docker.internal:host-gateway'