REF1: https://blog.ruanbekker.com/blog/2018/10/23/build-a-traefik-proxy-image-for-your-raspberry-pi-on-docker-swarm/
docker network create --attachable --driver overlay --opt encrypted=true app-entry docker network create --attachable --driver overlay --opt encrypted=true mgmt
clear && sudo apt-get update &&
sudo apt-get -y upgrade &&
sudo apt-get -y autoclean &&
sudo apt-get -y autoremove
clear && docker build -t mattwiater/rpi-socat .
clear &&
docker run -it
-p 127.0.0.1:2376:2375
-v /var/run/docker.sock:/var/run/docker.sock
mattwiater/rpi-socat /bin/ash
clear && docker build -t mattwiater/rpi-traefik .
clear &&
docker run -it
mattwiater/rpi-traefik /bin/bash
Stack as: proxy
View Traefik dashboard at any swarm node: http://piarmy01:8080/dashboard/
Stack as: test01
Visit any node in swarm: http://piarmy03. Repeated visits will loop through each service task b/c wrr.
Stack as: test02
This stack is the same service as test01, but named whoami02, and uses drr istead of the default wrr
Visit any node in swarm: http://piarmy03/test. Repeated visits will bring up "random" services b/c drr.
clear && docker build -t mattwiater/socat . clear && docker build -t mattwiater/traefik .