mirror of
https://github.com/status-im/consul.git
synced 2025-01-22 03:29:43 +00:00
docker-compose based demo
This commit is contained in:
parent
ecece736d7
commit
9f012d7b9c
33
demo/docker-compose-cluster/docker-compose.yml
Normal file
33
demo/docker-compose-cluster/docker-compose.yml
Normal file
@ -0,0 +1,33 @@
|
||||
version: '3'
|
||||
|
||||
services:
|
||||
|
||||
consul-agent-1: &consul-agent
|
||||
image: consul:latest
|
||||
networks:
|
||||
- consul-demo
|
||||
command: "agent -retry-join consul-server-bootstrap -client 0.0.0.0"
|
||||
|
||||
consul-agent-2:
|
||||
<<: *consul-agent
|
||||
|
||||
consul-agent-3:
|
||||
<<: *consul-agent
|
||||
|
||||
consul-server-1: &consul-server
|
||||
<<: *consul-agent
|
||||
command: "agent -server -retry-join consul-server-bootstrap -client 0.0.0.0"
|
||||
|
||||
consul-server-2:
|
||||
<<: *consul-server
|
||||
|
||||
consul-server-bootstrap:
|
||||
<<: *consul-agent
|
||||
ports:
|
||||
- "8400:8400"
|
||||
- "8500:8500"
|
||||
- "8600:8600"
|
||||
command: "agent -server -bootstrap-expect 3 -ui -client 0.0.0.0"
|
||||
|
||||
networks:
|
||||
consul-demo:
|
Loading…
x
Reference in New Issue
Block a user