services: jellyfin: image: jellyfin/jellyfin:latest user: "${UID:-1000}:${GID:-1000}" # Optional: Benutzer-ID und Gruppen-ID network_mode: 'host' ports: - "${JELLYFIN_PORT:-8096}:8096" volumes: - "${CONFIG_DIR:-./config}:/config" - "${CACHE_DIR:-./cache}:/cache" - type: bind source: "${MOVIES_DIR}" target: /media read_only: true - type: bind source: "${SERIES_DIR}" target: /media2 read_only: true restart: unless-stopped environment: - TZ=${TZ:-Europe/Berlin} - JELLYFIN_PublishedServerUrl=${JELLYFIN_URL} extra_hosts: - 'host.docker.internal:host-gateway'