Skip to content

Instantly share code, notes, and snippets.

@xissy
Created August 16, 2017 05:03
Show Gist options
  • Save xissy/9ae8b606f864db97ebdbd572c34e73a0 to your computer and use it in GitHub Desktop.
Save xissy/9ae8b606f864db97ebdbd572c34e73a0 to your computer and use it in GitHub Desktop.
Bootstrap a consul cluster
docker run -d --restart always --net host --name consul \
consul agent -server -bootstrap-expect=3 -retry-join=10.140.1.2 -retry-join=10.140.1.3 -bind=10.140.1.1 -ui -client=10.140.1.1
docker run -d --restart always --net host --name consul \
consul agent -server -retry-join=10.140.1.1 -retry-join=10.140.1.3 -bind=10.140.1.2 -ui -client=10.140.1.2
docker run -d --restart always --net host --name consul \
consul agent -server -retry-join=10.140.1.1 -retry-join=10.140.1.2 -bind=10.140.1.3 -ui -client=10.140.1.3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment