version: '3.5' services: jellyfin: image: jellyfin/jellyfin container_name: jellyfin user: 1000:1000 network_mode: 'host' volumes: - /media/main/media/tools/docker/volumes/jellyfin/config:/config - /media/main/media/tools/docker/volumes/jellyfin/cache:/cache - /media/main/media:/media 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"