From 64423e4a4dd7365cac310cf2a6e624cc9570bc21 Mon Sep 17 00:00:00 2001 From: Casey Bisson Date: Fri, 22 Jul 2016 09:01:50 -0700 Subject: [PATCH] just bootstrap --- docker-compose.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index cc60fa7..d8ceeb0 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -77,12 +77,14 @@ nginx: - com.docker.swarm.affinities=["container!=~*nginx*"] # Consul is the service catalog that helps discovery between the components +# Change "-bootstrap" to "-bootstrap-expect 3", then scale to 3 or more to +# turn this into an HA Consul raft. consul: image: autopilotpattern/consul:latest command: > /usr/local/bin/containerpilot /bin/consul agent -server - -bootstrap-expect 1 + -bootstrap -config-dir=/etc/consul -ui-dir /ui restart: always