Jellyfin

---

services:
  jellyfin:
    image: lscr.io/linuxserver/jellyfin:latest
    container_name: jellyfin
    restart: unless-stopped
    mem_limit: 4G
    environment:
      - PUID=1000
      - PGID=100 # group id matches nixos base install
      - TZ=${LOCATION}
      - JELLYFIN_PublishedServerUrl=${FQDN-JELLYFIN}
      #- DOCKER_MODS=linuxserver/mods:jellyfin-opencl-intel
    devices:
      - /dev/dri:/dev/dri
    volumes:
      - ${DATA-JELLYFIN}:/config
      - /mnt/cache:/config/cache
      - /mnt/share/tv:/data/tvshows
      - /mnt/share/anime/tv:/data/tvshows2
      - /mnt/share/documentary/tv:/data/tvshows3
      - /mnt/share/movies:/data/movies
      - /mnt/share/anime/movies:/data/movies2
      - /mnt/share/documentary/movies:/data/movies3
      - /mnt/share/kids:/data/movies4
      - /mnt/share/3d/movies:/data/movies5
      - /mnt/share/3d/documentary:/data/movies6
      - /mnt/share/standup/movies:/data/movies7
      - /mnt/share/standup/tv:/data/tvshows4
      - /mnt/share/tedtalks:/data/movies8
      - /mnt/share/skateboarding:/data/sk8
    ports:
      - 8096:8096
    networks:
      - swag

# Live TV metadata provider zap2xml
#  zap2xml:
#    image: shuaiscott/zap2xml:latest
#    container_name: zap2xml
#    restart: unless-stopped
#    volumes:
#        - ${DATA-ZAP2XML}:/data
#   environment:
#        - USERNAME=${USER-ZAP2XML}
#        - PASSWORD=${PASS-ZAP2XML}
#        - OPT_ARGS=-I -D
#        - XMLTV_FILENAME=xmltv.xml

networks:
  swag:
    external: true