This repository has been archived by the owner on May 29, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.eth1.yaml
188 lines (177 loc) · 4.74 KB
/
docker-compose.eth1.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
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
version: "3.8"
networks:
tethys:
name: tethys
driver: bridge
ipam:
config:
- subnet: 172.16.254.0/28
services:
nats:
container_name: nats
build:
context: docker/images/nats
ports:
- "4222:4222" # client connections
- "6222:6222" # routing port for clustering
- "8222:8222" # http management port for information reporting
networks:
- tethys
geth-bootnode:
container_name: geth-bootnode
build:
context: docker/images/geth
args:
- ACCOUNT_PASSWORD=${GETH_ACCOUNT_PASSWORD}
command:
--nodekeyhex="b0ac22adcad37213c7c565810a50f1772291e7b0ce53fb73e7ec2a3c75bc13b5"
--nodiscover
--ipcdisable
--networkid=${GETH_NETWORK_ID}
--netrestrict="172.16.254.0/28"
networks:
- tethys
geth-miner:
container_name: geth-miner
build:
context: docker/images/geth
depends_on:
- geth-bootnode
command:
--bootnodes="enode://af22c29c316ad069cf48a09a4ad5cf04a251b411e45098888d114c6dd7f489a13786620d5953738762afa13711d4ffb3b19aa5de772d8af72f851f7e9c5b164a@geth-bootnode:30303"
--mine
--miner.threads=1
--networkid=${GETH_NETWORK_ID}
--netrestrict="172.16.254.0/28"
networks:
tethys:
geth-rpc-1:
container_name: geth-rpc-1
build:
context: docker/images/geth
depends_on:
- geth-bootnode
command:
--bootnodes="enode://af22c29c316ad069cf48a09a4ad5cf04a251b411e45098888d114c6dd7f489a13786620d5953738762afa13711d4ffb3b19aa5de772d8af72f851f7e9c5b164a@geth-bootnode:30303"
--http
--http.vhosts="*"
--http.addr="0.0.0.0"
--http.api="eth,net,web3,debug,txpool,personal,admin"
--http.corsdomain="*"
--http.rpcprefix="/"
--ws
--ws.addr="0.0.0.0"
--ws.api="eth,net,web3,debug,txpool,personal,admin"
--ws.rpcprefix="/"
--networkid=${GETH_NETWORK_ID}
--netrestrict="172.16.254.0/28"
ports:
- "8545:8545"
- "8546:8546"
networks:
- tethys
geth-rpc-1-sidecar:
container_name: geth-rpc-1-sidecar
image: 41north/tethys-sidecar:dev
depends_on:
- nats
- geth-rpc-1
networks:
- tethys
restart: on-failure
command:
- eth
environment:
NATS_URL: ns://nats:4222
WEB3_URL: ws://geth-rpc-1:8546
geth-rpc-2:
container_name: geth-rpc-2
build:
context: docker/images/geth
depends_on:
- geth-bootnode
command:
--bootnodes="enode://af22c29c316ad069cf48a09a4ad5cf04a251b411e45098888d114c6dd7f489a13786620d5953738762afa13711d4ffb3b19aa5de772d8af72f851f7e9c5b164a@geth-bootnode:30303"
--http
--http.vhosts="*"
--http.addr="0.0.0.0"
--http.api="eth,net,web3,debug,txpool,personal,admin"
--http.corsdomain="*"
--http.rpcprefix="/"
--ws
--ws.addr="0.0.0.0"
--ws.api="eth,net,web3,debug,txpool,personal,admin"
--ws.rpcprefix="/"
--networkid=${GETH_NETWORK_ID}
--netrestrict="172.16.254.0/28"
networks:
- tethys
geth-rpc-2-sidecar:
container_name: geth-rpc-2-sidecar
image: 41north/tethys-sidecar:dev
depends_on:
- nats
- geth-rpc-2
networks:
- tethys
restart: on-failure
command:
- eth
environment:
NATS_URL: ns://nats:4222
WEB3_URL: ws://geth-rpc-2:8546
geth-rpc-3:
container_name: geth-rpc-3
build:
context: docker/images/geth
depends_on:
- geth-bootnode
command:
--bootnodes="enode://af22c29c316ad069cf48a09a4ad5cf04a251b411e45098888d114c6dd7f489a13786620d5953738762afa13711d4ffb3b19aa5de772d8af72f851f7e9c5b164a@geth-bootnode:30303"
--http
--http.vhosts="*"
--http.addr="0.0.0.0"
--http.api="eth,net,web3,debug,txpool,personal,admin"
--http.corsdomain="*"
--http.rpcprefix="/"
--ws
--ws.addr="0.0.0.0"
--ws.api="eth,net,web3,debug,txpool,personal,admin"
--ws.rpcprefix="/"
--networkid=${GETH_NETWORK_ID}
--netrestrict="172.16.254.0/28"
networks:
- tethys
geth-rpc-3-sidecar:
container_name: geth-rpc-3-sidecar
image: 41north/tethys-sidecar:dev
depends_on:
- nats
- geth-rpc-3
networks:
- tethys
restart: on-failure
command:
- eth
environment:
NATS_URL: ns://nats:4222
WEB3_URL: ws://geth-rpc-3:8546
WEB3_CONNECTION_TYPE: ConnectionTypeManaged
WEB3_CLIENT_ID: alchemy
proxy:
container_name: proxy
image: 41north/tethys-proxy:dev
depends_on:
- nats
networks:
- tethys
ports:
- "8080:8080"
restart: on-failure
command:
- eth
- --log-level=debug
environment:
NATS_URL: ns://nats:4222
ETH_NETWORK_ID: 1214
ETH_CHAIN_ID: 1214