Created
May 25, 2016 20:45
-
-
Save swade1987/7bd23e91cc187c79101d79c67634e101 to your computer and use it in GitHub Desktop.
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
sudo docker run -d --name consul \ | |
-p $host_ip:8300:8300 \ | |
-p $host_ip:8301:8301 \ | |
-p $host_ip:8301:8301/udp \ | |
-p $host_ip:8302:8302 \ | |
-p $host_ip:8302:8302/udp \ | |
-p $host_ip:8400:8400 \ | |
-p $host_ip:8500:8500 \ | |
-e 'CONSUL_LOCAL_CONFIG={"skip_leave_on_interrupt": true}' \ | |
consul agent \ | |
-server \ | |
-ui \ | |
-client=0.0.0.0 \ | |
-bootstrap-expect $bootstrap_expect | |
-advertise $host_ip \ | |
-retry-join ${consul_server_1} \ | |
-retry-join ${consul_server_2} \ | |
-retry-join ${consul_server_3} \ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment