-
Notifications
You must be signed in to change notification settings - Fork 12
/
docker-compose.yml
71 lines (68 loc) · 1.96 KB
/
docker-compose.yml
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
version: '2'
services:
ambassador:
image: cpuguy83/docker-grand-ambassador
volumes:
- /var/run/docker.sock:/docker.sock
command:
- -name=vault_etcd0_1
- -wait=true
- -sock=/docker.sock
- -log-level=debug
etcd0:
image: quay.io/coreos/etcd:v3.0.12
links:
- ambassador:etcd1
- ambassador:etcd2
ports:
- 4001:4001
- 2380:2380
- 2379:2379
command:
etcd
-name etcd0
-initial-cluster-token etcd-cluster-1
-initial-cluster "etcd0=http://etcd0:2380,etcd1=http://etcd1:2380,etcd2=http://etcd2:2380"
-initial-cluster-state new
-initial-advertise-peer-urls http://etcd0:2380
-listen-client-urls "http://0.0.0.0:2379,http://0.0.0.0:4001"
-listen-peer-urls http://0.0.0.0:2380
-advertise-client-urls http://etcd0:2379
etcd1:
image: quay.io/coreos/etcd:v3.0.12
links:
- ambassador:etcd0
- ambassador:etcd2
ports:
- 4001
- 2380
- 2379
command:
etcd
-name etcd1
-initial-cluster-token etcd-cluster-1
-initial-cluster "etcd0=http://etcd0:2380,etcd1=http://etcd1:2380,etcd2=http://etcd2:2380"
-initial-cluster-state new
-initial-advertise-peer-urls http://etcd1:2380
-listen-client-urls http://0.0.0.0:2379
-listen-peer-urls http://0.0.0.0:2380
-advertise-client-urls http://etcd1:2379
etcd2:
image: quay.io/coreos/etcd:v3.0.12
links:
- ambassador:etcd0
- ambassador:etcd1
ports:
- 4001
- 2380
- 2379
command:
etcd
-name=etcd2
-initial-cluster-token etcd-cluster-1
-initial-cluster "etcd0=http://etcd0:2380,etcd1=http://etcd1:2380,etcd2=http://etcd2:2380"
-initial-cluster-state new
-initial-advertise-peer-urls http://etcd2:2380
-listen-client-urls "http://0.0.0.0:2379,http://0.0.0.0:4001"
-listen-peer-urls http://0.0.0.0:2380
-advertise-client-urls http://etcd2:2379