version: "3.5" services: jellyfin: image: jellyfin/jellyfin container_name: jellyfin # user: uid:gid # network_mode: "host" ports: - 8096:8096 - 8920:8920 volumes: - ./path/to/config:/config - ./path/to/cache:/cache - ./path/to/media:/media - ./path/to/media2:/media2:ro restart: "unless-stopped" # Optional - alternative address used for autodiscovery environment: - USER_UID=1000 - USER_GID=1000 - JELLYFIN_PublishedServerUrl=http://域名