/
docker-compose.yml
50 lines (50 loc) · 1.94 KB
/
docker-compose.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
version: "3"
services:
eth2-client:
image: mkalinin/eth2client:latest
depends_on:
- eth1-producer
- eth1-gateway
command: --registry-size 4096 --active-shards 4 --eth1-engine http://eth1-producer:8545 --processor-eth1-engine http://eth1-gateway:8545 --epochs-to-run 1000000000
container_name: eth2-client
eth1-producer-init:
image: gballet/catalyst:latest
command: init --datadir /chaindata /setup/genesis.json
volumes:
- ./setup:/setup
- ./chaindata-producer:/chaindata
container_name: eth1-producer-init
eth1-producer:
image: gballet/catalyst:latest
command: --http --http.api eth,eth2,net --http.corsdomain * --http.vhosts * --http.addr 0.0.0.0 --miner.etherbase 0x1000000000000000000000000000000000000000 --datadir /chaindata --networkid 20202 --nodekeyhex 0000000000000000000000000000000000000000000000000000000000000001 --syncmode full --nodiscover --txpool.processtxs
volumes:
- ./chaindata-producer:/chaindata
depends_on:
- eth1-producer-init
container_name: eth1-producer
eth1-gateway-init:
image: gballet/catalyst:latest
command: init --datadir /chaindata /setup/genesis.json
volumes:
- ./setup:/setup
- ./chaindata-gateway:/chaindata
container_name: eth1-gateway-init
eth1-gateway-add-static-nodes:
image: bash
volumes:
- ./setup:/setup
- ./chaindata-gateway:/chaindata
depends_on:
- eth1-gateway-init
command: cp /setup/static-nodes.json /chaindata/geth/
container_name: eth1-gateway-add-static-nodes
eth1-gateway:
image: gballet/catalyst:latest
command: --http --http.api eth,eth2,net --http.corsdomain * --http.vhosts * --http.addr 0.0.0.0 --datadir /chaindata --networkid 20202 --syncmode full --nodiscover --txpool.processtxs
volumes:
- ./chaindata-gateway:/chaindata
ports:
- 8545:8545
depends_on:
- eth1-gateway-add-static-nodes
container_name: eth1-gateway