-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose-testnet.yml
157 lines (149 loc) · 4.17 KB
/
docker-compose-testnet.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
version: '3.8'
networks:
hbswap:
volumes:
mpc-bytecodes:
mpc-schedules:
public-keys:
secrets-p0:
secrets-p1:
secrets-p2:
secrets-p3:
inputmaskshares-p0:
inputmaskshares-p1:
inputmaskshares-p2:
inputmaskshares-p3:
ppdata-p0:
ppdata-p1:
ppdata-p2:
ppdata-p3:
persistence-p0:
persistence-p1:
persistence-p2:
persistence-p3:
db-p0:
db-p1:
db-p2:
db-p3:
services:
mpcnode0:
image: hbswap:kovan
build:
context: .
dockerfile: Dockerfile
environment:
NODE_ID: 0
POA_KEYSTORE: /opt/poa/keystore
ports:
- 58080:8080
networks:
- hbswap
volumes:
- mpc-bytecodes:/usr/src/hbswap/Programs/Bytecode
- mpc-schedules:/usr/src/hbswap/Programs/Schedules
- ./conf/server-kovan.toml:/opt/hbswap/conf/server.toml
- ./scripts/mpc-node-testnet.sh:/usr/src/hbswap/mpc-node-testnet.sh
- ./scripts/wait-for-it.sh:/usr/local/bin/wait-for-it
- ./src:/go/src/github.com/initc3/HoneyBadgerSwap/src
- ./poa/keystore:/opt/poa/keystore
- ./log:/usr/src/hbswap/log
- ./src/python:/usr/src/honeybadgerswap-python
- db-p0:/opt/hbswap/db
- ./testkeys/public:/opt/hbswap/public-keys
secrets:
- P0.key
working_dir: /usr/src/hbswap
command: ["bash", "mpc-node-testnet.sh"]
mpcnode1:
image: hbswap:kovan
build:
context: .
dockerfile: Dockerfile
environment:
NODE_ID: 1
POA_KEYSTORE: /opt/poa/keystore
ports:
- 58081:8080
networks:
- hbswap
volumes:
- mpc-bytecodes:/usr/src/hbswap/Programs/Bytecode
- mpc-schedules:/usr/src/hbswap/Programs/Schedules
- ./conf/server-kovan.toml:/opt/hbswap/conf/server.toml
- ./scripts/mpc-node-testnet.sh:/usr/src/hbswap/mpc-node-testnet.sh
- ./scripts/wait-for-it.sh:/usr/local/bin/wait-for-it
- ./src:/go/src/github.com/initc3/HoneyBadgerSwap/src
- ./poa/keystore:/opt/poa/keystore
- ./log:/usr/src/hbswap/log
- ./src/python:/usr/src/honeybadgerswap-python
- db-p1:/opt/hbswap/db
- ./testkeys/public:/opt/hbswap/public-keys
secrets:
- P1.key
working_dir: /usr/src/hbswap
command: ["bash", "mpc-node-testnet.sh"]
mpcnode2:
image: hbswap:kovan
build:
context: .
dockerfile: Dockerfile
environment:
NODE_ID: 2
POA_KEYSTORE: /opt/poa/keystore
ports:
- 58082:8080
networks:
- hbswap
volumes:
- mpc-bytecodes:/usr/src/hbswap/Programs/Bytecode
- mpc-schedules:/usr/src/hbswap/Programs/Schedules
- ./conf/server-kovan.toml:/opt/hbswap/conf/server.toml
- ./scripts/mpc-node-testnet.sh:/usr/src/hbswap/mpc-node-testnet.sh
- ./scripts/wait-for-it.sh:/usr/local/bin/wait-for-it
- ./src:/go/src/github.com/initc3/HoneyBadgerSwap/src
- ./poa/keystore:/opt/poa/keystore
- ./log:/usr/src/hbswap/log
- ./src/python:/usr/src/honeybadgerswap-python
- db-p2:/opt/hbswap/db
- ./testkeys/public:/opt/hbswap/public-keys
secrets:
- P2.key
working_dir: /usr/src/hbswap
command: ["bash", "mpc-node-testnet.sh"]
mpcnode3:
image: hbswap:kovan
build:
context: .
dockerfile: Dockerfile
environment:
NODE_ID: 3
POA_KEYSTORE: /opt/poa/keystore
ports:
- 58083:8080
networks:
- hbswap
volumes:
- mpc-bytecodes:/usr/src/hbswap/Programs/Bytecode
- mpc-schedules:/usr/src/hbswap/Programs/Schedules
- ./conf/server-kovan.toml:/opt/hbswap/conf/server.toml
- ./scripts/mpc-node-testnet.sh:/usr/src/hbswap/mpc-node-testnet.sh
- ./scripts/wait-for-it.sh:/usr/local/bin/wait-for-it
- ./src:/go/src/github.com/initc3/HoneyBadgerSwap/src
- ./poa/keystore:/opt/poa/keystore
- ./log:/usr/src/hbswap/log
- ./src/python:/usr/src/honeybadgerswap-python
- db-p3:/opt/hbswap/db
- ./testkeys/public:/opt/hbswap/public-keys
secrets:
- P3.key
working_dir: /usr/src/hbswap
command: ["bash", "mpc-node-testnet.sh"]
secrets:
P0.key:
file: testkeys/secret/P0.key
P1.key:
file: testkeys/secret/P1.key
P2.key:
file: testkeys/secret/P2.key
P3.key:
file: testkeys/secret/P3.key