forked from OffchainLabs/eth-pos-devnet
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-run.yml
91 lines (89 loc) · 2.88 KB
/
docker-run.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
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
version: "3.9"
services:
# Runs the go-ethereum execution client with the specified, unlocked account and necessary
# APIs to allow for proof-of-stake consensus via Prysm.
geth:
image: "ethereum/client-go:latest"
command:
- --networkid=123456
- --http
- --http.api=eth,net,web3,personal,miner
- --http.addr=0.0.0.0
- --http.vhosts=*
- --http.corsdomain=*
- --authrpc.vhosts=*
- --authrpc.addr=0.0.0.0
- --authrpc.jwtsecret=/execution/jwtsecret
- --datadir=/execution
- --allow-insecure-unlock
- --unlock=$account_geth_address
- --password=/execution/geth_password.txt
- --syncmode=full
- --mine
#- console
ports:
- 8551:8551
- 8545:8545
- 30303:30303
- 30303:30303/udp
volumes:
- ./execution:/execution
- ./execution/geth_password.txt:/execution/geth_password.txt
- ./jwtsecret:/execution/jwtsecret
# Runs a Prysm beacon chain from a specified genesis state created in the previous step
# and connects to go-ethereum in the same network as the execution client.
# The account used in go-ethereum is set as the suggested fee recipient for transactions
# proposed via the validators attached to the beacon node.
beacon-chain:
image: "gcr.io/prysmaticlabs/prysm/beacon-chain:latest"
command:
- --datadir=/consensus/beacondata
- --min-sync-peers=0
- --genesis-state=/consensus/genesis.ssz
#- --interop-eth1data-votes
- --bootstrap-node=
- --contract-deployment-block=0
# The chain configuration file used for setting up Prysm
- --chain-config-file=/consensus/config.yml
- --config-file=/consensus/config.yml
- --rpc-host=0.0.0.0
- --grpc-gateway-host=0.0.0.0
- --monitoring-host=0.0.0.0
- --execution-endpoint=http://geth:8551
- --chain-id=32382
- --accept-terms-of-use
- --jwt-secret=/execution/jwtsecret
- --suggested-fee-recipient=$account_geth_address
#- --p2p-host-ip=45.32.169.236
depends_on:
geth:
condition: service_started
ports:
- 4000:4000
- 3500:3500
- 8080:8080
- 13000:13000
- 12000:12000/udp
volumes:
- ./consensus:/consensus
- ./jwtsecret:/execution/jwtsecret
# We run a validator client
validator:
image: "gcr.io/prysmaticlabs/prysm/validator:latest"
command:
#- --interop-num-validators=1
#- --interop-start-index=0
- --beacon-rpc-provider=beacon-chain:4000
- --datadir=/consensus/validatordata
- --accept-terms-of-use
- --chain-config-file=/consensus/config.yml
- --wallet-dir=/wallet_dir
- --wallet-password-file=/wallet_dir/password.txt
depends_on:
beacon-chain:
condition: service_started
ports:
- 8081:8081
volumes:
- ./consensus:/consensus
- ./wallet_dir:/wallet_dir