First commit
This commit is contained in:
@@ -0,0 +1,10 @@
|
|||||||
|
version: "3"
|
||||||
|
services:
|
||||||
|
mosquitto:
|
||||||
|
image: eclipse-mosquitto
|
||||||
|
container_name: mosquitto
|
||||||
|
ports:
|
||||||
|
- "1883:1883"
|
||||||
|
- "9001:9001"
|
||||||
|
volumes:
|
||||||
|
- "mosquitto-data:/mosquitto"
|
||||||
@@ -0,0 +1,65 @@
|
|||||||
|
# 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.
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
version: "3"
|
||||||
|
services:
|
||||||
|
grafana:
|
||||||
|
image: grafana/grafana
|
||||||
|
container_name: grafana
|
||||||
|
ports:
|
||||||
|
- "3000:3000"
|
||||||
|
env_file:
|
||||||
|
- 'grafana.env'
|
||||||
|
user: "0"
|
||||||
|
volumes:
|
||||||
|
- "grafana-data:/var/lib/grafana"
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
version: "3"
|
||||||
|
services:
|
||||||
|
influxdb:
|
||||||
|
image: influxdb
|
||||||
|
container_name: influxdb
|
||||||
|
ports:
|
||||||
|
- "8086:8086"
|
||||||
|
volumes:
|
||||||
|
- "influxdb-data:/var/lib/influxdb"
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
version: "3"
|
||||||
|
services:
|
||||||
|
node-red:
|
||||||
|
image: nodered/node-red
|
||||||
|
container_name: node-red
|
||||||
|
ports:
|
||||||
|
- "1880:1880"
|
||||||
|
volumes:
|
||||||
|
- "node-red-data:/data"
|
||||||
Reference in New Issue
Block a user