-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-mps.yml
168 lines (164 loc) · 3.67 KB
/
docker-compose-mps.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
168
---
version: "3.6"
x-quorum-def:
&quorum-def
restart: "on-failure"
build:
context: config/goQuorum
args:
QUORUM_VERSION: ${QUORUM_VERSION:-latest}
expose:
- 30303
- 8545
- 9545
healthcheck:
# test: ["CMD", "curl --fail http://localhost:8545 || exit 1"]
test: ["CMD", "wget", "--spider", "--proxy", "off", "http://localhost:8545"] # --no-check-certificate
interval: 3s
timeout: 3s
retries: 10
start_period: 5s
x-tessera-def:
&tessera-def
build:
context: config/tessera
args:
TESSERA_VERSION: ${TESSERA_VERSION:-latest}
environment:
TESSERA_MODE: tessera
expose:
- 9000
- 9080
- 9101
restart: "no"
# healthcheck:
# test: ["CMD", "curl http://localhost:9000/upcheck || exit 1 "]
# interval: 3s
# timeout: 3s
# retries: 20
# start_period: 5s
services:
node1:
<< : *quorum-def
container_name: node1
hostname: node1
ports:
- 20000:8545/tcp
- 20001:8546/tcp
- 30303
- 9545
environment:
- GOQUORUM_CONS_ALGO=${GOQUORUM_CONS_ALGO}
- GOQUORUM_GENESIS_MODE=mps
- QUORUM_PTM=tm1
volumes:
- ./config/nodes/node1:/config/keys
- ./logs/quorum:/var/log/quorum/
- ./config/permissions:/permissions
- ./live:/live
node2:
<< : *quorum-def
container_name: node2
hostname: node2
ports:
- 20002:8545/tcp
- 20003:8546/tcp
- 30303
- 9545
environment:
- GOQUORUM_CONS_ALGO=${GOQUORUM_CONS_ALGO}
- GOQUORUM_GENESIS_MODE=standard
- QUORUM_PTM=tm2
volumes:
- ./config/nodes/node2:/config/keys
- ./logs/quorum:/var/log/quorum/
- ./config/permissions:/permissions
- ./live:/live
node3:
<< : *quorum-def
container_name: node3
hostname: node3
ports:
- 20004:8545/tcp
- 20005:8546/tcp
- 30303
- 9545
environment:
- GOQUORUM_CONS_ALGO=${GOQUORUM_CONS_ALGO}
- GOQUORUM_GENESIS_MODE=standard
- QUORUM_PTM=tm3
volumes:
- ./config/nodes/node3:/config/keys
- ./logs/quorum:/var/log/quorum/
- ./config/permissions:/permissions
- ./live:/live
node4:
<< : *quorum-def
container_name: node4
hostname: node4
ports:
- 20006:8545/tcp
- 20007:8546/tcp
- 30303
- 9545
environment:
- GOQUORUM_CONS_ALGO=${GOQUORUM_CONS_ALGO}
- GOQUORUM_GENESIS_MODE=standard
- QUORUM_PTM=tm3
volumes:
- ./config/nodes/node4:/config/keys
- ./logs/quorum:/var/log/quorum/
- ./config/permissions:/permissions
- ./live:/live
tm1:
<< : *tessera-def
container_name: tm1
hostname: tm1
ports:
- 9081:9080
environment:
- MPS=true
volumes:
- ./keys:/config/keys
- ./logs/tessera:/var/log/tessera/
tm2:
<< : *tessera-def
container_name: tm2
hostname: tm2
ports:
- 9082:9080
environment:
- MPS=false
volumes:
- ./keys:/config/keys
- ./logs/tessera:/var/log/tessera/
tm3:
<< : *tessera-def
container_name: tm3
hostname: tm3
ports:
- 9083:9080
environment:
- MPS=false
volumes:
- ./keys:/config/keys
- ./logs/tessera:/var/log/tessera/
tm4:
<< : *tessera-def
container_name: tm4
hostname: tm4
ports:
- 9084:9080
environment:
- MPS=false
volumes:
- ./keys:/config/keys
- ./logs/tessera:/var/log/tessera/
explorer:
container_name: explorer
image: consensys/quorum-explorer:latest
volumes:
- ./config/explorer/config-explorer.json:/app/config.json
- ./config/explorer/.env:/app/.env.production
ports:
- 26000:25000/tcp