Last active
April 2, 2021 14:03
-
-
Save garystafford/93fd61ef01e78e28f9c1f5c54086310a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# on edge node | |
git clone https://github.com/garystafford/iot-analytics-at-the-edge.git | |
# build required directories | |
mkdir -p ~/data/postgres | |
mkdir -p ~/data/grafana | |
mkdir -p ~/data/mosquitto/config | |
mkdir -p ~/data/mosquitto/data | |
mkdir -p ~/data/mosquitto/log | |
# move mosquitto config | |
cd iot-analytics-at-the-edge/docker/ | |
cp mosquitto.conf ~/data/mosquitto/config/ | |
# deploy stack | |
docker swarm init | |
docker stack deploy -c stack.yml iot | |
# check status of stack | |
docker stack ps iot --no-trunc | |
docker stack services iot |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment