1.2 KiB
1.2 KiB
Farm Control Stack
This folder contains a starter central-control stack for your farm:
- PostgreSQL (operational + business data)
- Mosquitto MQTT (sensor/device messaging)
- Grafana (dashboards/alerts)
- Node-RED (automation workflows)
- Prometheus (metrics collection)
First-run on this Mac
- Open
Rancher Desktopfrom Applications. - Complete first-run setup in the GUI.
- In Rancher Desktop settings, ensure Docker CLI is enabled.
- Open a new terminal and run:
cd /Users/farm/blackfish/projects/farm-control ./start.sh
Default endpoints
- Grafana: http://localhost:3000
- Node-RED: http://localhost:1880
- MQTT broker:
localhost:1883 - PostgreSQL:
localhost:5432 - Prometheus: http://localhost:9090
- Mac host metrics exporter: http://localhost:9100/metrics
Mac performance metrics
This Mac is monitored via node_exporter (installed with Homebrew and started as a service).
Prometheus scrapes it at host.docker.internal:9100, and Grafana uses Prometheus as default datasource.
Grafana also auto-loads a dashboard: Mac Host Overview (folder: Farm Control).
Important
Edit .env and change default passwords before exposing this machine on a farm network.