-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose-etcd-bridge.yml
112 lines (102 loc) · 3.47 KB
/
docker-compose-etcd-bridge.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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
version: '3.8'
x-variables:
# bridge-faults: &bridge-faults
# - '-tx-delay=100ms'
# - '-rx-delay=100ms'
# - '-conn-fault-rate=1'
flag_initial_cluster_token: &flag_initial_cluster_token '--initial-cluster-token=tkn'
common_settings: &common_settings
image: docker.io/bkanivets/etcd:v3.5.9
restart: always
entrypoint: /usr/local/bin/etcd
services:
bridge-1:
image: docker.io/bkanivets/etcd:v3.5.9
restart: always
entrypoint: /usr/local/bin/bridge
command:
- '-rx-delay=1000ms'
- '-conn-fault-rate=1'
- 'bridge-1:11111'
- 'etcd-1:2380'
bridge-2:
image: docker.io/bkanivets/etcd:v3.5.9
restart: always
entrypoint: /usr/local/bin/bridge
command:
- '-rx-delay=1000ms'
- '-conn-fault-rate=1'
- 'bridge-2:11111'
- 'etcd-2:2380'
bridge-3:
image: docker.io/bkanivets/etcd:v3.5.9
restart: always
entrypoint: /usr/local/bin/bridge
command:
- '-rx-delay=1000ms'
- '-conn-fault-rate=1'
- 'bridge-3:11111'
- 'etcd-3:2380'
etcd-1:
<<: *common_settings
environment:
- GOFAIL_HTTP=0.0.0.0:11180
command:
- '--name=etcd-1'
- '--initial-advertise-peer-urls=http://bridge-1:11111'
- '--listen-peer-urls=http://0.0.0.0:2380'
- '--listen-client-urls=http://0.0.0.0:2379'
- '--advertise-client-urls=http://etcd-1:2379'
- '--heartbeat-interval=250'
- '--election-timeout=1250'
- '--initial-cluster=etcd-1=http://bridge-1:11111,etcd-2=http://bridge-2:11111,etcd-3=http://bridge-3:11111'
- '--initial-cluster-state=new'
- '--metrics=extensive'
- *flag_initial_cluster_token
ports:
- 2379:2379
- 11180:11180
# volumes:
# - ./etcd1:/etcd_data
etcd-2:
<<: *common_settings
environment:
- GOFAIL_HTTP=0.0.0.0:11180
command:
- '--name=etcd-2'
- '--initial-advertise-peer-urls=http://bridge-2:11111'
- '--listen-peer-urls=http://0.0.0.0:2380'
- '--listen-client-urls=http://0.0.0.0:2379'
- '--advertise-client-urls=http://etcd-2:2379'
- '--heartbeat-interval=250'
- '--election-timeout=1250'
- '--initial-cluster=etcd-1=http://bridge-1:11111,etcd-2=http://bridge-2:11111,etcd-3=http://bridge-3:11111'
- '--initial-cluster-state=new'
- '--metrics=extensive'
- *flag_initial_cluster_token
ports:
- 22379:2379
- 21180:11180
# volumes:
# - ./etcd2:/etcd_data
etcd-3:
<<: *common_settings
environment:
- GOFAIL_HTTP=0.0.0.0:11180
command:
- '--name=etcd-3'
- '--initial-advertise-peer-urls=http://bridge-3:11111'
- '--listen-peer-urls=http://0.0.0.0:2380'
- '--listen-client-urls=http://0.0.0.0:2379'
- '--advertise-client-urls=http://etcd-3:2379'
- '--heartbeat-interval=250'
- '--election-timeout=1250'
- '--initial-cluster=etcd-1=http://bridge-1:11111,etcd-2=http://bridge-2:11111,etcd-3=http://bridge-3:11111'
- '--initial-cluster-state=new'
- '--metrics=extensive'
- *flag_initial_cluster_token
ports:
- 32379:2379
- 31180:11180
# volumes:
# - ./etcd3:/etcd_data