forked from OffchainLabs/nitro
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yaml
254 lines (238 loc) · 6.51 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
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
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
version: "3.9"
services:
blockscout:
depends_on:
- postgres
- sequencer
build:
context: blockscout
dockerfile: docker/Dockerfile
restart: always
container_name: 'blockscout'
links:
- postgres:database
command: 'sh -c "mix do ecto.create, ecto.migrate; node init/install.js postgres 5432; mix do phx.server"'
extra_hosts:
- 'host.docker.internal:host-gateway'
env_file:
- ./blockscout/nitro.env
environment:
ETHEREUM_JSONRPC_VARIANT: 'geth'
ETHEREUM_JSONRPC_HTTP_URL: http://sequencer:8547/
INDEXER_DISABLE_PENDING_TRANSACTIONS_FETCHER: "true"
DATABASE_URL: postgresql://postgres:@postgres:5432/blockscout?ssl=false
ECTO_USE_SSL: "false"
ports:
- "127.0.0.1:4000:4000"
postgres:
image: postgres:13.6
restart: always
container_name: 'postgres'
environment:
POSTGRES_PASSWORD: ''
POSTGRES_USER: 'postgres'
POSTGRES_HOST_AUTH_METHOD: 'trust'
volumes:
- "postgres-data:/var/lib/postgresql/data"
ports:
- "127.0.0.1:7432:5432"
redis:
image: redis:6.2.6
ports:
- "127.0.0.1:6379:6379"
geth:
image: ethereum/client-go:stable
ports:
- "127.0.0.1:8545:8545"
- "127.0.0.1:8546:8546"
- "127.0.0.1:30303:30303"
volumes:
- "l1data:/root/.ethereum"
- "l1keystore:/keystore"
- "config:/config"
command: --keystore /keystore --http --http.addr 0.0.0.0 --http.vhosts * --http.api personal,eth,net,web3 --http.corsdomain * --ws --ws.addr 0.0.0.0 --ws.api personal,eth,net,web3,debug,txpool --dev --dev.period 1 --password /root/.ethereum/passphrase --gcmode archive
sequencer:
pid: host # allow debugging
build:
context: .
dockerfile: Dockerfile.nitro-node
ports:
- "127.0.0.1:8547:8547"
- "127.0.0.1:8548:8548"
- "127.0.0.1:9642:9642"
volumes:
- "seqdata:/home/user/.arbitrum/local/nitro"
- "config:/config"
- "sdk-data:/workspace"
command: --conf.file /config/sequencer_config.json --node.feed.output.enable --node.feed.output.port 9642 --http.api net,web3,eth,txpool,debug --node.seq-coordinator.my-url ws://sequencer:8548 --graphql.enable --graphql.vhosts * --graphql.corsdomain *
depends_on:
- geth
- redis
sequencer_b:
pid: host # allow debugging
build:
context: .
target: nitro-node-dev
ports:
- "127.0.0.1:8647:8547"
- "127.0.0.1:8648:8548"
volumes:
- "seqdata_b:/home/user/.arbitrum/local/nitro"
- "config:/config"
command: --conf.file /config/sequencer_config.json --node.seq-coordinator.my-url ws://sequencer_b:8548
depends_on:
- geth
- redis
sequencer_c:
pid: host # allow debugging
build:
context: .
target: nitro-node-dev
ports:
- "127.0.0.1:8747:8547"
- "127.0.0.1:8748:8548"
volumes:
- "seqdata_c:/home/user/.arbitrum/local/nitro"
- "config:/config"
command: --conf.file /config/sequencer_config.json --node.seq-coordinator.my-url ws://sequencer_c:8548
depends_on:
- geth
- redis
sequencer_d:
pid: host # allow debugging
build:
context: .
target: nitro-node-dev
ports:
- "127.0.0.1:8847:8547"
- "127.0.0.1:8848:8548"
volumes:
- "seqdata_d:/home/user/.arbitrum/local/nitro"
- "config:/config"
command: --conf.file /config/sequencer_config.json --node.seq-coordinator.my-url ws://sequencer_d:8548
depends_on:
- geth
- redis
staker-unsafe:
pid: host # allow debugging
build:
context: .
dockerfile: Dockerfile.nitro-node
ports:
- "127.0.0.1:8047:8547"
- "127.0.0.1:8048:8548"
volumes:
- "unsafestaker-data:/home/user/.arbitrum/local/nitro"
- "l1keystore:/home/user/l1keystore"
- "config:/config"
command: --conf.file /config/unsafe_staker_config.json
depends_on:
- sequencer
- redis
poster:
pid: host # allow debugging
build:
context: .
dockerfile: Dockerfile.nitro-node
ports:
- "127.0.0.1:8147:8547"
- "127.0.0.1:8148:8548"
volumes:
- "poster-data:/home/user/.arbitrum/local/nitro"
- "l1keystore:/home/user/l1keystore"
- "config:/config"
command: --conf.file /config/poster_config.json
depends_on:
- geth
- redis
poster_b:
pid: host # allow debugging
build:
context: .
target: nitro-node-dev
ports:
- "127.0.0.1:9147:8547"
- "127.0.0.1:9148:8548"
volumes:
- "poster-data-b:/home/user/.arbitrum/local/nitro"
- "l1keystore:/home/user/l1keystore"
- "config:/config"
command: --conf.file /config/poster_config.json
depends_on:
- geth
- redis
poster_c:
pid: host # allow debugging
build:
context: .
target: nitro-node-dev
ports:
- "127.0.0.1:9247:8547"
- "127.0.0.1:9248:8548"
volumes:
- "poster-data-c:/home/user/.arbitrum/local/nitro"
- "l1keystore:/home/user/l1keystore"
- "config:/config"
command: --conf.file /config/poster_config.json
depends_on:
- geth
- redis
validator:
pid: host # allow debugging
build:
context: .
target: nitro-node-dev
ports:
- "127.0.0.1:8247:8547"
- "127.0.0.1:8248:8548"
volumes:
- "validator-data:/home/user/.arbitrum/local/nitro"
- "l1keystore:/home/user/l1keystore"
- "config:/config"
command: --conf.file /config/validator_config.json --http.port 8547 --http.api net,web3,arb,debug --ws.port 8548
depends_on:
- sequencer
testnode-scripts:
image: tmigone/nitro-testnode-scripts
volumes:
- "l1keystore:/home/user/l1keystore"
- "config:/config"
depends_on:
- geth
- redis
relay:
pid: host
build:
context: .
target: nitro-node-dev
ports:
- "127.0.0.1:9652:9652"
entrypoint: bin/relay
command: --node.feed.output.port 9652 --node.feed.input.url ws://sequencer:9652
testnode-tokenbridge:
depends_on:
- geth
- sequencer
pid: host
image: tmigone/nitro-testnode-tokenbridge
environment:
- ARB_URL=http://sequencer:8547
- ETH_URL=http://geth:8545
volumes:
- "sdk-data:/workspace"
- /var/run/docker.sock:/var/run/docker.sock
volumes:
l1data:
l1keystore:
seqdata:
seqdata_b:
seqdata_c:
seqdata_d:
unsafestaker-data:
validator-data:
poster-data:
poster-data-b:
poster-data-c:
config:
postgres-data:
sdk-data: