services: jellyfin: image: jellyfin/jellyfin container_name: jellyfin network_mode: 'host' volumes: - /mnt/storage/appdata/jellyfin/config:/config - /mnt/storage/appdata/jellyfin/config/web-config.json:/jellyfin/jellyfin-web/config.json - /mnt/storage/appdata/jellyfin/cache:/cache - /mnt/cygnus:/cygnus:ro - type: bind source: /mnt/storage/appdata/jellyfin/media target: /media 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'