name: norri
services:
  norri:
    image: registry.norri.tv/norri/norri:latest
    container_name: norri
    restart: unless-stopped
    logging:
      driver: local
      options:
        max-size: "10m"
        max-file: "3"
    ports:
      - "11423:11423"
    environment:
      PUID: "1000" # CHANGE to your media user's ID
      PGID: "1000" # CHANGE to your media user's group ID
    volumes:
      - norri_postgres:/var/lib/postgresql/data
      - norri_data:/var/lib/norri
      # CHANGE the paths on the LEFT to your existing folders.
      # DELETE unused media lines; keep :ro (read-only).
      - "/path/to/movies:/media/Movies:ro"
      - "/path/to/tv:/media/TVShows:ro"
      - "/path/to/music:/media/Music:ro"

    # INTEL (including ARC) / AMD GPU — Linux or NAS only.
    # REMOVE this whole block if you are not using one.
    devices:
      - /dev/dri:/dev/dri
    # END Intel / AMD block

    # NVIDIA GPU — needs host GPU support; see instructions.
    # REMOVE this whole block if you are not using one.
    gpus: all
    # END NVIDIA block

    tmpfs:
      - /run:rw,exec,size=16m,mode=0755
    security_opt:
      - no-new-privileges:true
    stop_grace_period: 45s
volumes:
  norri_postgres:
    name: norri_postgres
  norri_data:
    name: norri_data
