services: jellyfin: image: jellyfin/jellyfin container_name: jellyfin user: 1000:1000 network_mode: host deploy: resources: limits: memory: 2G volumes: - /opt/jellyfin/config:/config - /opt/jellyfin/cache:/cache - type: bind source: /media/Musik target: /Musik read_only: false - type: bind source: /media/Filme target: /Filme read_only: false - type: bind source: /media/Serien target: /Serien read_only: false # Optional - alternative address used for autodiscovery environment: - JELLYFIN_PublishedServerUrl=https://jellyfin-app.hanold.online # - ENABLE_METRICS=true # Optional - may be necessary for docker healthcheck to pass if running in host network mode extra_hosts: - host.docker.internal:host-gateway networks: {}