/
docker-compose.yaml
65 lines (63 loc) · 1.73 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
version: "3.8"
services:
jbc-execution:
container_name: jbc-execution
image: ethereum/client-go:v1.13.13
user: root
entrypoint: /root/geth-script.sh
command:
- "--datadir=/datadir/geth"
- "--networkid=${NETWORK_ID}"
- --authrpc.addr=0.0.0.0
- --authrpc.port=8551
- --authrpc.vhosts=*
- --authrpc.jwtsecret=/config/jwt.hex
- --http
- --http.addr=0.0.0.0
- --http.api=eth,engine,web3,net
- --http.port=8545
- --http.corsdomain=*
- --http.vhosts=*
volumes:
- ./genesis.json:/genesis.json
- ./data:/datadir
- ./geth-script.sh:/root/geth-script.sh
- ./config:/config
ports:
- 30303:30303
- 8545:8545
restart: always
jbc-consensus:
container_name: jbc-consensus
image: sigp/lighthouse:v5.0.0
user: root
entrypoint: /root/lighthouse-script.sh
command:
- lighthouse
- beacon
- --execution-endpoint=http://jbc-execution:8551
- --execution-jwt=/config/jwt.hex
- --testnet-dir=/config
- --http-allow-sync-stalled
- --disable-peer-scoring
- --http
- --http-address=0.0.0.0
- --http-port=5002
- --disable-packet-filter
- --eth1
- --target-peers=${TARGET_PEERS}
- --enr-address=${NODE_PUBLIC_IP}
- --enr-udp-port=9100
- --enr-tcp-port=9100
- --port=9100
- --checkpoint-sync-url=https://metrabyte-cl.jibchain.net/
- --prune-blobs=false
volumes:
- ./data/lighthouse:/root/.lighthouse
- ./config:/config
- ./lighthouse-script.sh:/root/lighthouse-script.sh
ports:
- 0.0.0.0:9100:9100/tcp
- 0.0.0.0:9100:9100/udp
- 0.0.0.0:5002:5002/tcp
- 0.0.0.0:5002:5002/udp