-
-
Save scmrus/36f96b6be8e281d7cb994e04eec845e8 to your computer and use it in GitHub Desktop.
Docker Compose Consul cluster
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
consul: | |
image: progrium/consul:latest | |
# net: host | |
ports: | |
- "8400:8400" | |
- "8500:8500" | |
command: "-server -bootstrap -ui-dir /ui" | |
registrator: | |
command: -resync 30 -internal consul://consul:8500 | |
image: gliderlabs/registrator:latest | |
# net: host | |
volumes: | |
- "/var/run/docker.sock:/tmp/docker.sock" | |
links: | |
- consul |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment