diff --git a/docker-compose.yml b/docker-compose.yml index c213cb1..ec5b861 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -42,6 +42,75 @@ services: volumes: - ${ES_DATA}:/usr/share/elasticsearch/data + etcd0: + image: quay.io/coreos/etcd + ports: + - "2379:2379" + volumes: + - etcd0:/etcd_data + command: + - /usr/local/bin/etcd + - -name + - etcd0 + - --data-dir + - /etcd_data + - -advertise-client-urls + - http://etcd0:2379 + - -listen-client-urls + - http://0.0.0.0:2379 + - -initial-advertise-peer-urls + - http://etcd0:2380 + - -listen-peer-urls + - http://0.0.0.0:2380 + - -initial-cluster + - etcd0=http://etcd0:2380,etcd1=http://etcd1:2380,etcd2=http://etcd2:2380 + + etcd1: + image: quay.io/coreos/etcd + ports: + - 2379 + volumes: + - etcd1:/etcd_data + command: + - /usr/local/bin/etcd + - -name + - etcd1 + - --data-dir + - /etcd_data + - -advertise-client-urls + - http://etcd1:2379 + - -listen-client-urls + - http://0.0.0.0:2379 + - -initial-advertise-peer-urls + - http://etcd1:2380 + - -listen-peer-urls + - http://0.0.0.0:2380 + - -initial-cluster + - etcd0=http://etcd0:2380,etcd1=http://etcd1:2380,etcd2=http://etcd2:2380 + + etcd2: + image: quay.io/coreos/etcd + ports: + - 2379 + volumes: + - etcd2:/etcd_data + command: + - /usr/local/bin/etcd + - -name + - etcd2 + - --data-dir + - /etcd_data + - -advertise-client-urls + - http://etcd2:2379 + - -listen-client-urls + - http://0.0.0.0:2379 + - -initial-advertise-peer-urls + - http://etcd2:2380 + - -listen-peer-urls + - http://0.0.0.0:2380 + - -initial-cluster + - etcd0=http://etcd0:2380,etcd1=http://etcd1:2380,etcd2=http://etcd2:2380 + harness-cli: restart: always image: actionml/harness-cli:develop @@ -58,3 +127,8 @@ services: volumes: - /var/run/docker.sock:/var/run/docker.sock command: --interval 3000 + +volumes: + etcd0: + etcd1: + etcd2: