# Jellyfin - Ingyenes és nyílt forráskódú média szerver # Domain: ${SUBDOMAIN}.${DOMAIN} # Database: None (file-based) # RAM: ~512M (mem_limit: 2048M) | Pi-compatible: No # # Environment variables: # DOMAIN - Your domain (e.g., demo-felhom.eu) # USERDATA_PATH - Ügyfél-tartalom gyökér (/userdata) — a média a media/ alatt # # Storage layout (felhom userdata convention): # Médiatár → ${USERDATA_PATH}/media (csak olvasható; a könyvtárakat az appban választod ki) services: jellyfin: image: jellyfin/jellyfin:10.11.11 container_name: jellyfin restart: unless-stopped # R-777: Jellyfin decides "local network" from the visitor's address (remote access per user, the IP filter, # ForgotPassword). With KnownProxies empty it reads the TCP peer — traefik, a private address — so EVERY internet # visitor counted as local (measured on 9202 2026-10-06: a user with remote access OFF signed in through the # tunnel, session address 172.18.0.5). Trusting 172.16.0.0/12 (traefik, cloudflared at 172.16.253.2, docker's # pools) makes it walk X-Forwarded-For from the right to the real visitor. There is no env var for it: the # setting lives in network.xml, written here before the server starts — on a fresh volume, or when the list is # still empty (a household's own list is left alone). entrypoint: - /bin/sh - -c - | f=/config/config/network.xml mkdir -p /config/config if [ ! -f "$$f" ]; then printf '%s\n' '' '' ' ' ' 172.16.0.0/12' ' ' '' > "$$f" echo "[felhom] network.xml seeded: KnownProxies 172.16.0.0/12 (R-777)" elif grep -q '' "$$f"; then sed -i 's##172.16.0.0/12#' "$$f" echo "[felhom] network.xml: KnownProxies was empty, set to 172.16.0.0/12 (R-777)" fi exec /jellyfin/jellyfin environment: - TZ=Europe/Budapest volumes: - jellyfin_config:/config - jellyfin_cache:/cache - ${USERDATA_PATH}/media:/media:ro networks: - traefik-public deploy: resources: limits: memory: 2048M healthcheck: test: ["CMD", "curl", "-f", "http://127.0.0.1:8096/health"] interval: 30s timeout: 5s retries: 3 start_period: 30s labels: - "traefik.enable=true" - "traefik.http.routers.jellyfin.rule=Host(`${SUBDOMAIN}.${DOMAIN}`)" - "traefik.http.routers.jellyfin.entrypoints=websecure" - "traefik.http.routers.jellyfin.tls=true" - "traefik.http.routers.jellyfin.tls.certresolver=letsencrypt" - "traefik.http.services.jellyfin.loadbalancer.server.port=8096" volumes: jellyfin_cache: jellyfin_config: networks: traefik-public: external: true