Last active
June 13, 2018 13:29
-
-
Save muresan/d663ab95266c124aad6cdd11ea173fed to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| docker network create -d overlay --subnet 10.10.10.0/24 consul-swarm | |
| docker service create --network consul-swarm --name consul --mode=global -e CONSUL_BIND_INTERFACE=eth0 -e CONSUL_CLIENT_INTERFACE=eth0 -p 8500:8500 consul agent -server -bootstrap-expect=2 -retry-join=tasks.consul -ui -client=0.0.0.0 | |
| docker service create --network consul-swarm --name registrator --mode=global --mount type=bind,source=/var/run/docker.sock,destination=/tmp/docker.sock gliderlabs/registrator consul://consul:8500 | |
| docker service create --name traefik --constraint node.role==manager --publish 80:80 --publish 8080:8080 --mount type=bind,source=/var/run/docker.sock,target=/var/run/docker.sock --network hw_replica traefik --docker --docker.swarmmode --docker.domain=traefik --docker.watch --web |
Author
Are you using consul for traefik in here?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Changed to
-retry-join=tasks.consuland removeddnsrrafter finding out that this name actually exists in swarm DNS. I've not seen it anyplace documented.