host: chelsty-infra
site: chelsty

services:
  ha-diag-agent:
    role: ha-diagnostic-agent
    deployment_model: docker-compose
    exposure: local-only
    offline_required: false
    depends_on:
      local: []
      external: [homeassistant]
    config:
      target_url: http://100.70.180.90:8123  # chelsty-ha via Tailscale (HAOS, separate VM)
      location_tag: "chelsty"
      events_dir: /opt/homelab/events/chelsty-infra
    runtime:
      config_path: /opt/homelab/config/ha-diag-agent
      data_path: /var/lib/ha-diag-agent

  node-agent:
    role: node-stability-monitor
    # LTE node: node-agent monitors and emits events but does NO Docker cleanup.
    # Disk pressure on chelsty-infra is typically Frigate recordings; Frigate's
    # own retain policy is the correct remediation, not docker prune.
    deployment_model: docker-compose
    exposure: local-only
    offline_required: true

  mosquitto:
    role: local-mqtt-broker

  zigbee2mqtt:
    role: zigbee-mqtt-bridge

  frigate:
    role: nvr
