services: jellyfin: image: jellyfin/jellyfin:latest user: "${UID:-1000}:${GID:-1000}" network_mode: 'host' volumes: - ${CONFIG_DIR:-/srv/jellyfin/config}:/config - ${CACHE_DIR:-/srv/jellyfin/cache}:/cache - type: bind source: ${MOVIES_DIR:-/mnt/media1} target: /media - type: bind source: ${SERIES_DIR:-/mnt/media2} target: /media2 read_only: true - type: bind source: ${FONTS_DIR:-/usr/share/fonts/custom} target: /usr/local/share/fonts/custom read_only: true restart: 'unless-stopped' environment: - JELLYFIN_PublishedServerUrl=${JELLYFIN_URL} - TZ=${TZ:-Europe/Berlin} extra_hosts: - 'host.docker.internal:host-gateway'