From 7ae48bcd66a41d38574ceee962774739d4170edb Mon Sep 17 00:00:00 2001 From: Andrei Burd Date: Fri, 19 Jan 2018 22:54:44 +0200 Subject: [PATCH] docker-compose based demo --- .../docker-compose-cluster/docker-compose.yml | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 demo/docker-compose-cluster/docker-compose.yml diff --git a/demo/docker-compose-cluster/docker-compose.yml b/demo/docker-compose-cluster/docker-compose.yml new file mode 100644 index 000000000..9a0993927 --- /dev/null +++ b/demo/docker-compose-cluster/docker-compose.yml @@ -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: