Created
June 20, 2016 17:12
-
-
Save cristobal23/9da292bbcdb5dc07a3c39ffd0e28aa07 to your computer and use it in GitHub Desktop.
Trying to get Consul DNS interface working
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
version: "2" | |
# host address 192.168.99.101 | |
# consul server 192.168.99.100 | |
services: | |
agent: | |
image: progrium/consul | |
hostname: rabbit1 | |
container_name: agent | |
volumes: | |
- /var/run/docker.sock:/var/run/docker.sock | |
dns: | |
- 172.17.42.1 | |
- 8.8.8.8 | |
dns_search: service.consul | |
ports: | |
- "8301:8301" | |
- "8301:8301/udp" | |
- "8400:8400" | |
- "8500:8500" | |
- "53:53/udp" | |
entrypoint: | |
- /bin/start | |
- -advertise | |
- 192.168.99.101 | |
- -join | |
- 192.168.99.100 | |
rabbit: | |
image: aweber/rabbitmq-autocluster | |
hostname: rabbit1 | |
container_name: rabbit1 | |
links: | |
- agent:consul | |
dns: | |
- 172.17.42.1 | |
- 8.8.8.8 | |
dns_search: service.consul | |
ports: | |
- "80:15672" | |
environment: | |
- AUTOCLUSTER_TYPE=consul | |
- CONSUL_HOST=192.168.99.101 | |
- CONSUL_SVC_ADDR_AUTO=true | |
- RABBITMQ_ERLANG_COOKIE=cookie | |
- RABBITMQ_NODENAME=rabbit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment