Skip to content

Instantly share code, notes, and snippets.

Last active Apr 2, 2021
What would you like to do?
# on edge node
git clone
# 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