services:
  ha-diag-agent:
    environment:
      - NODE_NAME=piha
    # Pin events to the piha-specific subdirectory; overrides the ${NODE_NAME}
    # variable substitution in the base compose file which requires a shell env var.
    volumes:
      - /opt/homelab/events/piha:/events
      - /var/lib/ha-diag-agent:/data
      - /opt/homelab/config/ha-diag-agent:/config:ro
    mem_limit: 128m
    restart: unless-stopped
