version: '3.5' services: jellyfin: image: jellyfin/jellyfin user: 1000:1000 container_name: jellyfin ports: - 127.0.0.1:8096:8096 - 7359:7359/udp - 1900:1900/udp volumes: - /data/jellyfin/config:/config - /data/jellyfin/cache:/cache - /data/jellyfin/media/films:/media/films - /data/jellyfin/media/shows:/media/shows restart: 'unless-stopped' # Optional - alternative address used for autodiscovery environment: - JELLYFIN_PublishedServerUrl=https://film.$domain # Optional - may be necessary for docker healthcheck to pass if running in host network mode extra_hosts: - "host.docker.internal:host-gateway" deploy: resources: reservations: devices: - capabilities: [gpu]