-
Notifications
You must be signed in to change notification settings - Fork 35
/
docker-compose.yaml
35 lines (33 loc) · 1004 Bytes
/
docker-compose.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
services:
etcd:
image: quay.io/coreos/etcd:v3.5.9
command: >
/usr/local/bin/etcd
-name etcd0
-advertise-client-urls http://localhost:2379
-listen-client-urls http://0.0.0.0:22379
-initial-advertise-peer-urls http://0.0.0.0:2381
-listen-peer-urls http://0.0.0.0:2381
-initial-cluster-token etcd-cluster-1
-initial-cluster etcd0=http://0.0.0.0:2381
-initial-cluster-state new
-enable-v2=false
platform: linux/amd64
ports:
- 22379:22379
consul-agent:
image: hashicorp/consul:latest
command: "agent -retry-join consul-server-bootstrap -client 0.0.0.0"
volumes:
- ${PWD}/consul/config:/consul/config
consul-server-bootstrap:
image: hashicorp/consul:latest
ports:
- "8400:8400"
- "8500:8500"
- "8501:8501"
- "8600:8600"
- "8600:8600/udp"
command: "agent -server -bootstrap-expect 1 -ui -client 0.0.0.0"
volumes:
- ${PWD}/consul/config:/consul/config