https://github.com/orestispanago/logger-stack
Mosquitto+MySQL+NodeRED+Grafana Docker containers with persistent volumes for IoT dataloggers
https://github.com/orestispanago/logger-stack
docker docker-compose grafana iot mqtt mysql node-red persistent
Last synced: 2 months ago
JSON representation
Mosquitto+MySQL+NodeRED+Grafana Docker containers with persistent volumes for IoT dataloggers
- Host: GitHub
- URL: https://github.com/orestispanago/logger-stack
- Owner: orestispanago
- Created: 2021-03-19T23:07:03.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2021-03-21T20:37:47.000Z (about 5 years ago)
- Last Synced: 2025-06-27T14:06:48.665Z (12 months ago)
- Topics: docker, docker-compose, grafana, iot, mqtt, mysql, node-red, persistent
- Language: JavaScript
- Homepage:
- Size: 17.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### Docker-MySQL-NodeRED-Grafana
Docker stack with persistent data volumes for IoT data logging projects.
The ```init``` folders contain first run configurations where necessary,
MySQL users, schema, Grafana datasource etc.
#### Use as template
The ```docker-compose.yml``` file may be used as a template for other projects.
In this case make sure to:
* Clean up the ```init``` volumes definitions in ```docker-compose.yml```.
* Create volumes before first ```docker-compose up``` to avoid permission issues
Once the containers are successfully built and running:
* Create schema and table in MySQL workbench
* Set MySQL datasource IP in Grafana.
* Secure NodeRED
#### Setting NodeRED admin password:
Create and copy hashed password
```bash
docker exec -it nodered npx node-red admin hash-pw
```
```bash
docker-compose stop node-red
```
Uncomment the adminAuth section in ```settings.js``` and paste the hashed password.
Start NodeRED
```bash
docker-compose start node-red
```
#### MySQL node tips
Install ```node-red-contrib-stackhero-mysql``` to avoid ```ER_NOT_SUPPORTED_AUTH_MODE``` error.
Import ```.json``` flow containing example ```INSERT``` function.