Example code how to deploy Traefik with Consul as the provider
These stack files have been presented during the online meetup organized by Containous - a company behind Traefik. The presentation is entitled:
The link to the presentation is available here.
https://www.slideshare.net/jakubhajekcometari/container-orchestration-with-traefk-on-docker-swarm
The stack files have to be deployed in following order
-
Consul
docker stack deploy -c stack-consul.yml consul --with-registry-auth
-
Traefik stack
docker stack deploy -c stack-traefik.yml traefik --with-registry-auth
-
Application Stack
docker stack deploy -c stack-app.yml app --with-registry-auth