You will be able to run a simple IoT server based on Mosquitto, Node-Red, InfluxDB and Grafana in a docker environment. I assume you are running a unix-like OS.
- Install Docker (https://www.docker.com/)
- Install Git (https://git-scm.com/)
- Clone Git repository:
git clone git@github.com:bisand/IoTServer.git
- Type:
cd IoTServer
to enter the newly cloned repository. - Type:
sudo ./init.sh
to initialize and start the docker stack.
You should be up and running with your server stack.
For generating ssl certificates for your web site, please follow the instructions below. For this to work, you will have to point your domain to the server where you have installed the server stack.
sudo docker exec haproxy-certbot certbot-certonly --domain example.com --email user@example.com --dry-run
sudo docker exec -it haproxy-certbot certbot-certonly-dns --domain example.com --email user@example.com --dry-run
Remember to replace domain and email with your own, and remove --dry-run when testing is complete.
sudo docker exec haproxy-certbot haproxy-refresh
You should be good to go!