Skip to content

Commit 2ab07fc

Browse files
authored
Merge pull request #24 from autopilotpattern/nginx-coprocess
Eliminate risk of split brain
2 parents 6f0e8d1 + 64423e4 commit 2ab07fc

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

docker-compose.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,12 +77,14 @@ nginx:
7777
- com.docker.swarm.affinities=["container!=~*nginx*"]
7878

7979
# Consul is the service catalog that helps discovery between the components
80+
# Change "-bootstrap" to "-bootstrap-expect 3", then scale to 3 or more to
81+
# turn this into an HA Consul raft.
8082
consul:
8183
image: autopilotpattern/consul:latest
8284
command: >
8385
/usr/local/bin/containerpilot
8486
/bin/consul agent -server
85-
-bootstrap-expect 1
87+
-bootstrap
8688
-config-dir=/etc/consul
8789
-ui-dir /ui
8890
restart: always

0 commit comments

Comments
 (0)