name: norri
services:
  norri:
    image: registry.norri.tv/norri/norri:latest
    platform: linux/amd64
    container_name: norri
    restart: unless-stopped
    logging:
      driver: local
      options:
        max-size: "10m"
        max-file: "3"
    ports:
      - "11423:11423"
    environment:
      PUID: "501" # CHANGE to the result of id -u
      PGID: "20" # CHANGE to the result of id -g
    volumes:
      - norri_postgres:/var/lib/postgresql/data
      - norri_data:/var/lib/norri
      # CHANGE the paths on the LEFT to your existing folders.
      # External drives use /Volumes/DRIVE/FOLDER.
      # DELETE unused media lines; keep :ro (read-only).
      - "/Users/YOUR_NAME/Movies:/media/Movies:ro"
      - "/Users/YOUR_NAME/TV:/media/TVShows:ro"
      - "/Users/YOUR_NAME/Music:/media/Music:ro"
    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
