services:
  jellyfin:
    #image: jellyfin/jellyfin:latest
    image: lscr.io/linuxserver/jellyfin:latest
    container_name: jellyfin
    restart: unless-stopped
    ports:
      - "8096:8096" # HTTP web UI
      - "8920:8920" # HTTPS web UI (optional)
      - "7359:7359/udp" # Discovery (optional)
      - "1900:1900/udp" # DLNA (optional)
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=America/New_York
      - JELLYFIN_PublishedServerUrl=http://192.168.68.67:8096
      - JELLYFIN_LOG_LEVEL=Warning
      # NVIDIA GPU settings (commented out due to driver issues)
      # - NVIDIA_VISIBLE_DEVICES=all
      # - NVIDIA_DRIVER_CAPABILITIES=compute,video,utility
    volumes:
      - jellyfin_config:/config
      - jellyfin_cache:/cache
      # Media directories
      - /mnt/share/media/anime:/data/anime
      - /mnt/share/media/tv:/data/tv
      - /mnt/share/media/babies:/data/babies
      - /mnt/share/media/movies:/data/movies
      - /mnt/share/media/movies_kids:/data/movies_kids
    labels:
      - diun.enable=true
    # Hardware acceleration devices (commented out - no GPU drivers available)
    # devices:
    #   - /dev/dri:/dev/dri # For Intel/AMD GPU

    # Runtime for NVIDIA GPU support (commented out due to driver issues)
    # runtime: nvidia
volumes:
  jellyfin_config:
    driver: local
  jellyfin_cache:
    driver: local

networks:
  default:
    name: jellyfin_network
