# Scrutiny Collector — pi-5 (Raspberry Pi 5)
#
# Ships SMART data to the hub on homelab-vm.
# pi-5 has 2 NVMe drives (M.2 HAT):
#   - nvme0n1: Micron 7450 480GB
#   - nvme1n1: Samsung 970 EVO Plus 500GB
# NVMe not auto-discovered by smartctl --scan; uses explicit config.
# collector.yaml lives at: /home/vish/scrutiny/collector.yaml
#
# Hub: http://100.67.40.126:8090

services:
  scrutiny-collector:
    image: ghcr.io/analogj/scrutiny:master-collector
    container_name: scrutiny-collector
    cap_add:
      - SYS_RAWIO
      - SYS_ADMIN
    volumes:
      - /run/udev:/run/udev:ro
      - /home/vish/scrutiny/collector.yaml:/opt/scrutiny/config/collector.yaml:ro
    devices:
      - /dev/nvme0n1
      - /dev/nvme1n1
    environment:
      COLLECTOR_API_ENDPOINT: "http://100.67.40.126:8090"
    restart: unless-stopped
