Created
October 14, 2015 18:17
-
-
Save webwurst/f0714d04ac7e86f60b2f to your computer and use it in GitHub Desktop.
first steps with "dynamic haproxy"
This file contains 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 run --name consul -d -h dev \ | |
-p 172.16.42.61:8300:8300 \ | |
-p 172.16.42.61:8301:8301 \ | |
-p 172.16.42.61:8301:8301/udp \ | |
-p 172.16.42.61:8302:8302 \ | |
-p 172.16.42.61:8302:8302/udp \ | |
-p 172.16.42.61:8400:8400 \ | |
-p 172.16.42.61:8500:8500 \ | |
-p 172.17.42.1:53:53 \ | |
-p 172.17.42.1:53:53/udp \ | |
progrium/consul -server -advertise 172.16.42.61 -bootstrap-expect 1 | |
docker run -d \ | |
-v /var/run/docker.sock:/tmp/docker.sock \ | |
-h registrator \ | |
--name registrator \ | |
gliderlabs/registrator consul://172.16.42.61:8500 | |
docker run -d \ | |
-e SERVICE_NAME=hello/v1 \ | |
-e SERVICE_TAGS=rest \ | |
-h hello1 --name hello1 \ | |
-p :80 \ | |
sirile/scala-boot-test | |
docker run \ | |
--dns 172.17.42.1 \ | |
--rm \ | |
sirile/haproxy -consul=consul.service.consul:8500 -dry -once | |
docker run -d \ | |
-e SERVICE_NAME=rest \ | |
--name=rest \ | |
--dns 172.17.42.1 \ | |
-p 80:80 \ | |
-p 1936:1936 \ | |
sirile/haproxy |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment