docker network create --attachable --driver overlay data
docker volume create --driver local \
--opt type=nfs --opt o=addr=192.168.1.17,rw \
--opt device=:/volume1/docker/influxdb influxdb
docker service create --name influxdb \
-p 8086:8086 \
--mount "type=volume,source=influxdb,destination=/var/lib/influxdb/,readonly=false" \
--network data \
--replicas 1 influxdb
docker service create --name mqtt \
-p 1883:1883 -p 9001:9001 --network data \
pascaldevink/rpi-mosquitto
docker volume create --driver local \
--opt type=nfs --opt o=addr=192.168.1.17,rw \
--opt device=:/volume1/docker/telegraf telegraf
docker service create --name telegraf-sensors \
--mount "type=volume,source=telegraf,destination=/etc/telegraf,readonly=true" \
--network data \
--replicas 1 telegraf
docker volume create --driver local \
--opt type=nfs --opt o=addr=192.168.1.17,rw \
--opt device=:/volume1/docker/grafana grafana
docker service create --name grafana \
-p 3000:3000 \
--mount "type=volume,source=grafana,destination=/var/lib/grafana/,readonly=false" \
--network data \
--replicas 1 fg2it/grafana-armhf:v4.6.3