-
Notifications
You must be signed in to change notification settings - Fork 6
/
docker-compose.besu-teku.yml
71 lines (68 loc) · 2.05 KB
/
docker-compose.besu-teku.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
version: "3.8"
services:
besu:
image: hyperledger/besu:$BESU_VERSION
container_name: besu
volumes:
- $EXECUTION_DATA_VOLUME:/execution_data
- $CONFIGS_VOLUME:/configs
restart: unless-stopped
stop_signal: SIGINT
stop_grace_period: 2m
command: >
--data-path=/execution_data
--genesis-file=/configs/genesis.json
--min-gas-price=1000000000
--network-id=$LUKSO_NETWORK_ID
--engine-jwt-secret=/configs/jwt.hex
--nat-method=DOCKER
--p2p-host="$EXTERNAL_IP"
--max-peers=25
--rpc-http-enabled
--rpc-http-host="0.0.0.0"
--rpc-http-apis="ETH,NET"
--rpc-http-cors-origins="*"
--bootnodes="$EXECUTION_BOOTSTRAP_NODE_1,$EXECUTION_BOOTSTRAP_NODE_2"
--metrics-enabled
--metrics-host="0.0.0.0"
--ethstats="${NODE_NAME}:${ETH_STATS_SECRET}@${ETH_STATS_ADDRESS}"
network_mode: host
logging:
driver: "local"
options:
max-size: "100m"
teku:
image: consensys/teku:$TEKU_VERSION
container_name: teku
volumes:
- $CONSENSUS_DATA_VOLUME:/consensus_data
- $CONFIGS_VOLUME:/configs
restart: unless-stopped
stop_signal: SIGINT
stop_grace_period: 2m
command: >
--initial-state /configs/genesis.ssz
--network /configs/config.yaml
--checkpoint-sync-url $CHECKPOINT_SYNC_URL
--ignore-weak-subjectivity-period-enabled
--data-path /consensus_data
--p2p-discovery-bootnodes $CONSENSUS_BOOTSTRAP_NODE_1
--ee-endpoint http://localhost:8551
--ee-jwt-secret-file /configs/jwt.hex
--validators-proposer-default-fee-recipient $FEE_RECIPIENT
--p2p-interface 0.0.0.0
--p2p-port 9000
--p2p-peer-lower-bound 0
--p2p-peer-upper-bound 100
--p2p-subscribe-all-subnets-enabled
--metrics-enabled
--metrics-interface 0.0.0.0
--rest-api-enabled
--rest-api-host-allowlist=*
--rest-api-interface 0.0.0.0
--rest-api-cors-origins=*
network_mode: host
logging:
driver: "local"
options:
max-size: "100m"