This is an experiment that tries to know the scope of Elasticsearch as a hot storage implemented for IoT monitoring.
For development purposes there is an docker-compose
file with Open Distro for Elasticsearch stack and MQTT running in Docker.
Start the environment:
docker-compose -f docker-compose.yml -f docker-compose.mqtt2es.yml up
Open Kibana Web interface:
http://localhost:5601/
To deploy to production, there are docker-compose
files with Open Distro for Elasticsearch stack running in Docker with Traefik as Reverse Proxy. Traefik handles traffic to Kibana Web Interface. Elasticsearch persist it's data to Docker volume. Health checks of the Kibana and Elasticsearch services is also included.
Note: you must replace the domain kibana.mysite.com
in files docker-compose-production.yml
and traefik.toml
Create docker network for traefik:
docker network create traefik-network
Start the environment:
docker-compose -f docker-compose.prod.yml -f docker-compose.mqtt2es.yml up
Open Kibana Web interface or Traefik Dashboard using the address:
http://kibana.mysite.com/
http://kibana.mysite.com:8080/
Kibana uses initial username admin
and password admin