Skip to content

Instantly share code, notes, and snippets.

@garystafford
Last active April 2, 2021 14:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save garystafford/93fd61ef01e78e28f9c1f5c54086310a to your computer and use it in GitHub Desktop.
Save garystafford/93fd61ef01e78e28f9c1f5c54086310a to your computer and use it in GitHub Desktop.
# 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