commit dbca0335d4ab4873c8e92f1b75a32f8a287c657a Author: deepikaj Date: Mon Feb 28 18:02:48 2022 +0530 Initial commit diff --git a/README.md b/README.md new file mode 100644 index 0000000..8aa5b6a --- /dev/null +++ b/README.md @@ -0,0 +1,62 @@ +# BIT IOT Stack + +## Building + +### Pre-requisite: +1. Install Docker-desktop using WSL2 from Windows 10+ + +### Install IOT Stack applications MQTT, NodeRed, InfuxDB and Grafana +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.