-
-
Save wahello/6905ec40ed3cc355972ee3d3aa6920c2 to your computer and use it in GitHub Desktop.
Stand up a single node consul server and export ui/api over port 80 and consul dns over port 53
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
version: '2' | |
services: | |
consul: | |
image: consul | |
volumes: | |
- ./data/consul:/consul/data | |
command: /bin/consul agent -server -data-dir="/consul/data" -bootstrap -client="0.0.0.0" -advertise="127.0.0.1" -ui | |
ports: | |
- 80:8500 #HTTP API/UI | |
- 53:8600/udp #DNS |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment