Skip to content

Commit

Permalink
Merge pull request #24 from autopilotpattern/nginx-coprocess
Browse files Browse the repository at this point in the history
Eliminate risk of split brain
  • Loading branch information
misterbisson authored Jul 22, 2016
2 parents 6f0e8d1 + 64423e4 commit 2ab07fc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2ab07fc

Please sign in to comment.