We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6f0e8d1 + 64423e4 commit 2ab07fcCopy full SHA for 2ab07fc
1 file changed
docker-compose.yml
@@ -77,12 +77,14 @@ nginx:
77
- com.docker.swarm.affinities=["container!=~*nginx*"]
78
79
# 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.
82
consul:
83
image: autopilotpattern/consul:latest
84
command: >
85
/usr/local/bin/containerpilot
86
/bin/consul agent -server
- -bootstrap-expect 1
87
+ -bootstrap
88
-config-dir=/etc/consul
89
-ui-dir /ui
90
restart: always
0 commit comments