-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yaml
162 lines (153 loc) · 4.55 KB
/
docker-compose.yaml
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
# Docker Compose file for making an Entropy blockchain network.
# Currently, it's intended for LOCAL DEVNET FUNCTIONALITY ONLY.
# Things will get better and more generic, but for the moment
# this iteration is for simplifying the dogfooding and testing
# workflows our engineers use, and trying to cut down on some
# of the more complicated test code that spins up this kind of
# environment for their tests. Eventually, we will converge on
# a more canonical set of environments and configuration files.
---
name: entropy-devnet-local
secrets:
credentials:
file: ${XDG_DATA_HOME:-~/.local/share}/entropy-cryptography/.entropy.auth.sh
services:
# In a local devnet setup, for now, this is "Alice's TSS server."
alice-tss-server:
extends:
file: docker-compose-common.yaml
service: tss-server
ports:
- "127.0.0.1:3001:3001/tcp"
command:
- "--alice"
- "--threshold-url"
- "0.0.0.0:3001"
- "--chain-endpoint"
- "ws://alice-chain-node:9944"
# In a local devnet setup, for now, this is "Alice's chain."
alice-chain-node:
extends:
file: docker-compose-common.yaml
service: chain-node
ports:
- "127.0.0.1:9944:9944/tcp" # "RPC Port."
command:
- "--chain"
- "devnet-local"
- "--alice" # Shortcut for `--name Alice --validator`
- "--base-path"
- ".entropy/alice"
- "--rpc-port"
- "9944"
- "--rpc-cors"
- "all"
- "--unsafe-rpc-external" # Intentional, for TSS's access.
- "--node-key=0000000000000000000000000000000000000000000000000000000000000001"
- "--tss-server-endpoint"
- "http://alice-tss-server:3001"
# "Bob's TSS server."
bob-tss-server:
extends:
file: docker-compose-common.yaml
service: tss-server
ports:
- "127.0.0.1:3002:3002/tcp"
command:
- "--bob"
- "--threshold-url"
- "0.0.0.0:3002"
- "--chain-endpoint"
- "ws://bob-chain-node:9944"
# "Bob's chain node."
bob-chain-node:
extends:
file: docker-compose-common.yaml
service: chain-node
ports:
- "127.0.0.1:9945:9944/tcp"
command:
- "--chain"
- "devnet-local"
- "--bob" # Shortcut for `--name Bob --validator`
- "--base-path"
- ".entropy/bob"
- "--rpc-port"
- "9944"
- "--rpc-cors"
- "all"
- "--unsafe-rpc-external" # Intentional, for TSS's access.
- "--bootnodes"
- "/dns4/alice-chain-node/tcp/30333/p2p/12D3KooWEyoppNCUx8Yx66oV9fJnriXwCcXwDDUA2kj6vnc6iDEp"
- "--tss-server-endpoint"
- "http://bob-tss-server:3002"
# "Charlie's TSS server."
charlie-tss-server:
extends:
file: docker-compose-common.yaml
service: tss-server
ports:
- "127.0.0.1:3003:3003/tcp"
command:
- "--charlie"
- "--threshold-url"
- "0.0.0.0:3003"
- "--chain-endpoint"
- "ws://charlie-chain-node:9944"
# "Charlie's chain node."
charlie-chain-node:
extends:
file: docker-compose-common.yaml
service: chain-node
ports:
- "127.0.0.1:9946:9944/tcp"
command:
- "--chain"
- "devnet-local"
- "--charlie" # Shortcut for `--name Charlie --validator`
- "--base-path"
- ".entropy/charlie"
- "--rpc-port"
- "9944"
- "--rpc-cors"
- "all"
- "--unsafe-rpc-external" # Intentional, for TSS's access.
- "--bootnodes"
- "/dns4/alice-chain-node/tcp/30333/p2p/12D3KooWEyoppNCUx8Yx66oV9fJnriXwCcXwDDUA2kj6vnc6iDEp"
- "--tss-server-endpoint"
- "http://charlie-tss-server:3003"
# "Dave's TSS server."
dave-tss-server:
extends:
file: docker-compose-common.yaml
service: tss-server
ports:
- "127.0.0.1:3004:3004/tcp"
command:
- "--dave"
- "--threshold-url"
- "0.0.0.0:3004"
- "--chain-endpoint"
- "ws://dave-chain-node:9944"
# "Dave's chain node."
dave-chain-node:
extends:
file: docker-compose-common.yaml
service: chain-node
ports:
- "127.0.0.1:9947:9944/tcp"
command:
- "--chain"
- "devnet-local"
- "--dave" # Shortcut for `--name Dave --validator`
- "--base-path"
- ".entropy/dave"
- "--rpc-port"
- "9944"
- "--rpc-cors"
- "all"
- "--unsafe-rpc-external" # Intentional, for TSS's access.
- "--bootnodes"
- "/dns4/alice-chain-node/tcp/30333/p2p/12D3KooWEyoppNCUx8Yx66oV9fJnriXwCcXwDDUA2kj6vnc6iDEp"
- "--tss-server-endpoint"
- "http://dave-tss-server:3004"