Skip to content

Instantly share code, notes, and snippets.

@gnilchee
Created October 28, 2016 06:04
Show Gist options
  • Save gnilchee/35b5328925409bc79e628bd90319be94 to your computer and use it in GitHub Desktop.
Save gnilchee/35b5328925409bc79e628bd90319be94 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
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