services: jellyfin: image: jellyfin/jellyfin:latest container_name: jellyfin restart: unless-stopped volumes: - ./config:/config - ./data:/data - ./cache:/cache ports: - "8096:8096" # Jellyfin web UI environment: - PUID=1000 # Adjust according to your Pi user ID - PGID=1000 # Adjust according to your Pi group ID devices: - /dev/dri:/dev/dri # For hardware acceleration (optional) network_mode: host # Optionally use host networking if you have network performance issues