66 lines
1.3 KiB
Markdown
66 lines
1.3 KiB
Markdown
# BIT IOT Stack
|
|
|
|
## Building
|
|
|
|
### Pre-requisite:
|
|
1. Install Docker-desktop using WSL2 from Windows 10+
|
|
|
|
### Install IOT Stack applications MQTT, NodeRed, InfuxDB and Grafana
|
|
```sh
|
|
version: "3"
|
|
services:
|
|
influxdb:
|
|
image: influxdb
|
|
container_name: influxdb
|
|
ports:
|
|
- "8086:8086"
|
|
volumes:
|
|
- "../influxdb-data:/var/lib/influxdb"
|
|
|
|
grafana:
|
|
image: grafana/grafana
|
|
container_name: grafana
|
|
ports:
|
|
- "3000:3000"
|
|
user: "0"
|
|
volumes:
|
|
- "../grafana-data:/var/lib/grafana"
|
|
|
|
node-red:
|
|
image: nodered/node-red
|
|
container_name: node-red
|
|
ports:
|
|
- "1880:1880"
|
|
volumes:
|
|
- "../node-red-data:/data"
|
|
|
|
mosquitto:
|
|
image: eclipse-mosquitto
|
|
container_name: mosquitto
|
|
ports:
|
|
- "1883:1883"
|
|
- "9001:9001"
|
|
volumes:
|
|
- "../mosquitto-data:/mosquitto"
|
|
|
|
volumes:
|
|
influxdb-data:
|
|
grafana-data:
|
|
node-red-data:
|
|
mosquitto-data:
|
|
|
|
```
|
|
|
|
### Configurations
|
|
## InfluxDB config
|
|
Configuration can be done with the influxdb.env file.
|
|
|
|
## Grafana config
|
|
Configuration is done in the grafana.env file. To connect it to the influxdb database the 'influxdb' hostname can be used: http://influxdb:8086
|
|
|
|
## Node-red
|
|
Node red configuration has to be done in the docker volume itself.
|
|
|
|
## MQTT
|
|
The mosquitto configuration has to be done in the docker volume itself.
|