forked from bottlepay/lightning-benchmark
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-etcd-cluster.yml
167 lines (156 loc) · 5.78 KB
/
docker-compose-etcd-cluster.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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
version: '3.4'
services:
bitcoind:
image: kylemanna/bitcoind
volumes:
- ./bitcoin.conf:/bitcoin/.bitcoin/bitcoin.conf
etcd-alice-1:
restart: unless-stopped
image: 'bitnami/etcd:3.3.10'
environment:
- ALLOW_NONE_AUTHENTICATION=yes
- ETCD_NAME=etcd-alice-1
- ETCD_LISTEN_CLIENT_URLS=https://0.0.0.0:2379
- ETCD_ADVERTISE_CLIENT_URLS=https://etcd-alice-1:2379
- ETCD_MAX_TXN_OPS=16384
- ETCD_MAX_REQUEST_BYTES=104857600
- ETCD_AUTO_TLS=true
- ETCD_PEER_AUTO_TLS=true
- ETCD_INITIAL_ADVERTISE_PEER_URLS=https://etcd-alice-1:2380
- ETCD_LISTEN_PEER_URLS=https://0.0.0.0:2380
- ETCD_INITIAL_CLUSTER_TOKEN=etcd-cluster-alice
- ETCD_INITIAL_CLUSTER=etcd-alice-1=https://etcd-alice-1:2380,etcd-alice-2=https://etcd-alice-2:2380,etcd-alice-3=https://etcd-alice-3:2380
- ETCD_INITIAL_CLUSTER_STATE=new
etcd-alice-2:
restart: unless-stopped
image: 'bitnami/etcd:3.3.10'
environment:
- ALLOW_NONE_AUTHENTICATION=yes
- ETCD_NAME=etcd-alice-2
- ETCD_LISTEN_CLIENT_URLS=https://0.0.0.0:2379
- ETCD_ADVERTISE_CLIENT_URLS=https://etcd-alice-2:2379
- ETCD_MAX_TXN_OPS=16384
- ETCD_MAX_REQUEST_BYTES=104857600
- ETCD_AUTO_TLS=true
- ETCD_PEER_AUTO_TLS=true
- ETCD_INITIAL_ADVERTISE_PEER_URLS=https://etcd-alice-2:2380
- ETCD_LISTEN_PEER_URLS=https://0.0.0.0:2380
- ETCD_INITIAL_CLUSTER_TOKEN=etcd-cluster-alice
- ETCD_INITIAL_CLUSTER=etcd-alice-1=https://etcd-alice-1:2380,etcd-alice-2=https://etcd-alice-2:2380,etcd-alice-3=https://etcd-alice-3:2380
- ETCD_INITIAL_CLUSTER_STATE=new
etcd-alice-3:
restart: unless-stopped
image: 'bitnami/etcd:3.3.10'
environment:
- ALLOW_NONE_AUTHENTICATION=yes
- ETCD_NAME=etcd-alice-3
- ETCD_LISTEN_CLIENT_URLS=https://0.0.0.0:2379
- ETCD_ADVERTISE_CLIENT_URLS=https://etcd-alice-3:2379
- ETCD_MAX_TXN_OPS=16384
- ETCD_MAX_REQUEST_BYTES=104857600
- ETCD_AUTO_TLS=true
- ETCD_PEER_AUTO_TLS=true
- ETCD_INITIAL_ADVERTISE_PEER_URLS=https://etcd-alice-3:2380
- ETCD_LISTEN_PEER_URLS=https://0.0.0.0:2380
- ETCD_INITIAL_CLUSTER_TOKEN=etcd-cluster-alice
- ETCD_INITIAL_CLUSTER=etcd-alice-1=https://etcd-alice-1:2380,etcd-alice-2=https://etcd-alice-2:2380,etcd-alice-3=https://etcd-alice-3:2380
- ETCD_INITIAL_CLUSTER_STATE=new
etcd-bob-1:
restart: unless-stopped
image: 'bitnami/etcd:3.3.10'
environment:
- ALLOW_NONE_AUTHENTICATION=yes
- ETCD_NAME=etcd-bob-1
- ETCD_LISTEN_CLIENT_URLS=https://0.0.0.0:2379
- ETCD_ADVERTISE_CLIENT_URLS=https://etcd-bob-1:2379
- ETCD_MAX_TXN_OPS=16384
- ETCD_MAX_REQUEST_BYTES=104857600
- ETCD_AUTO_TLS=true
- ETCD_PEER_AUTO_TLS=true
- ETCD_INITIAL_ADVERTISE_PEER_URLS=https://etcd-bob-1:2380
- ETCD_LISTEN_PEER_URLS=https://0.0.0.0:2380
- ETCD_INITIAL_CLUSTER_TOKEN=etcd-cluster-bob
- ETCD_INITIAL_CLUSTER=etcd-bob-1=https://etcd-bob-1:2380,etcd-bob-2=https://etcd-bob-2:2380,etcd-bob-3=https://etcd-bob-3:2380
- ETCD_INITIAL_CLUSTER_STATE=new
etcd-bob-2:
restart: unless-stopped
image: 'bitnami/etcd:3.3.10'
environment:
- ALLOW_NONE_AUTHENTICATION=yes
- ETCD_NAME=etcd-bob-2
- ETCD_LISTEN_CLIENT_URLS=https://0.0.0.0:2379
- ETCD_ADVERTISE_CLIENT_URLS=https://etcd-bob-2:2379
- ETCD_MAX_TXN_OPS=16384
- ETCD_MAX_REQUEST_BYTES=104857600
- ETCD_AUTO_TLS=true
- ETCD_PEER_AUTO_TLS=true
- ETCD_INITIAL_ADVERTISE_PEER_URLS=https://etcd-bob-2:2380
- ETCD_LISTEN_PEER_URLS=https://0.0.0.0:2380
- ETCD_INITIAL_CLUSTER_TOKEN=etcd-cluster-bob
- ETCD_INITIAL_CLUSTER=etcd-bob-1=https://etcd-bob-1:2380,etcd-bob-2=https://etcd-bob-2:2380,etcd-bob-3=https://etcd-bob-3:2380
- ETCD_INITIAL_CLUSTER_STATE=new
etcd-bob-3:
restart: unless-stopped
image: 'bitnami/etcd:3.3.10'
environment:
- ALLOW_NONE_AUTHENTICATION=yes
- ETCD_NAME=etcd-bob-3
- ETCD_LISTEN_CLIENT_URLS=https://0.0.0.0:2379
- ETCD_ADVERTISE_CLIENT_URLS=https://etcd-bob-3:2379
- ETCD_MAX_TXN_OPS=16384
- ETCD_MAX_REQUEST_BYTES=104857600
- ETCD_AUTO_TLS=true
- ETCD_PEER_AUTO_TLS=true
- ETCD_INITIAL_ADVERTISE_PEER_URLS=https://etcd-bob-3:2380
- ETCD_LISTEN_PEER_URLS=https://0.0.0.0:2380
- ETCD_INITIAL_CLUSTER_TOKEN=etcd-cluster-bob
- ETCD_INITIAL_CLUSTER=etcd-bob-1=https://etcd-bob-1:2380,etcd-bob-2=https://etcd-bob-2:2380,etcd-bob-3=https://etcd-bob-3:2380
- ETCD_INITIAL_CLUSTER_STATE=new
lnd-alice:
restart: unless-stopped
build:
context: lnd
args:
checkout: v0.12.1-beta
tags: signrpc walletrpc chainrpc invoicesrpc monitoring kvdb_etcd
depends_on:
- bitcoind
- etcd-alice-1
- etcd-alice-2
- etcd-alice-3
volumes:
- ./lnd.conf:/root/.lnd/lnd.conf
- lnd-alice:/cfg
ports:
- 5000:5000
command: --tlsextradomain=lnd-alice --db.backend=etcd --db.etcd.host=etcd-alice-1:2379 --db.etcd.insecure_skip_verify
lnd-bob:
restart: unless-stopped
build:
context: lnd
args:
checkout: v0.12.1-beta
tags: signrpc walletrpc chainrpc invoicesrpc monitoring kvdb_etcd
depends_on:
- bitcoind
- etcd-bob-1
- etcd-bob-2
- etcd-bob-3
volumes:
- ./lnd.conf:/root/.lnd/lnd.conf
- lnd-bob:/cfg
ports:
- 5001:5000
command: --tlsextradomain=lnd-bob --db.backend=etcd --db.etcd.host=etcd-bob-1:2379 --db.etcd.insecure_skip_verify
loadtest:
build: loadtest
depends_on:
- lnd-alice
- lnd-bob
volumes:
- lnd-alice:/lnd-alice
- lnd-bob:/lnd-bob
- ./${LOADTEST_CONFIG_FILE}:/loadtest.yml
volumes:
lnd-alice:
lnd-bob: