forked from eth-educators/eth-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
erigon.yml
98 lines (97 loc) · 2.82 KB
/
erigon.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
92
93
94
95
96
97
98
version: "3.9"
x-logging: &logging
logging:
driver: json-file
options:
max-size: 100m
max-file: "3"
tag: '{{.ImageName}}|{{.Name}}|{{.ImageFullID}}|{{.FullID}}'
services:
execution:
restart: "unless-stopped"
build:
context: ./erigon
dockerfile: ${ERIGON_DOCKERFILE}
args:
- BUILD_TARGET=${ERIGON_SRC_BUILD_TARGET}
- DOCKER_TAG=${ERIGON_DOCKER_TAG}
stop_grace_period: 5m
image: erigon:local
user: erigon
environment:
- JWT_SECRET=${JWT_SECRET}
- EL_EXTRAS=${EL_EXTRAS:-}
- ARCHIVE_NODE=${ARCHIVE_NODE:-}
volumes:
- erigon-el-data:/var/lib/erigon
- /etc/localtime:/etc/localtime:ro
- jwtsecret:/var/lib/erigon/ee-secret
ports:
- ${HOST_IP:-0.0.0.0}:${EL_P2P_PORT:-30303}:${EL_P2P_PORT:-30303}/tcp
- ${HOST_IP:-0.0.0.0}:${EL_P2P_PORT:-30303}:${EL_P2P_PORT:-30303}/udp
- ${HOST_IP:-0.0.0.0}:${ERIGON_P2P_PORT_2:-30304}:${ERIGON_P2P_PORT_2:-30304}/tcp
- ${HOST_IP:-0.0.0.0}:${ERIGON_P2P_PORT_2:-30304}:${ERIGON_P2P_PORT_2:-30304}/udp
- ${HOST_IP:-0.0.0.0}:${ERIGON_P2P_PORT_3:-30305}:${ERIGON_P2P_PORT_3:-30305}/tcp
- ${HOST_IP:-0.0.0.0}:${ERIGON_P2P_PORT_3:-30305}:${ERIGON_P2P_PORT_3:-30305}/udp
# torrent ports
- ${HOST_IP:-0.0.0.0}:${ERIGON_TORRENT_PORT:-42069}:${ERIGON_TORRENT_PORT:-42069}/tcp
- ${HOST_IP:-0.0.0.0}:${ERIGON_TORRENT_PORT:-42069}:${ERIGON_TORRENT_PORT:-42069}/udp
networks:
default:
aliases:
- eth1
<<: *logging
entrypoint:
- docker-entrypoint.sh
- erigon
- --private.api.addr
- 0.0.0.0:9090
- --datadir
- /var/lib/erigon
- --port
- ${EL_P2P_PORT:-30303}
- --p2p.allowed-ports
- ${EL_P2P_PORT:-30303},${ERIGON_P2P_PORT_2:-30304},${ERIGON_P2P_PORT_3:-30305}
- --torrent.port
- ${ERIGON_TORRENT_PORT:-42069}
- --nat
- any
- --chain
- ${NETWORK}
- --log.console.verbosity
- ${LOG_LEVEL}
- --metrics
- --metrics.addr
- 0.0.0.0
- --http
- --http.addr
- 0.0.0.0
- --http.port
- ${EL_RPC_PORT}
- --http.vhosts=*
- --http.corsdomain=*
- --http.api
- web3,eth,net,engine
- --ws
# Allow RocketPool >=1.9 watchtower queries
- --rpc.returndata.limit
- "1000000"
- --authrpc.addr
- 0.0.0.0
- --authrpc.port
- ${EE_PORT:-8551}
- --authrpc.vhosts=*
- --authrpc.jwtsecret
- /var/lib/erigon/ee-secret/jwtsecret
- --externalcl
- --maxpeers
- ${EL_MAX_PEER_COUNT:-100}
# To assist with recordsize 16k in ZFS
- --db.pagesize
- 16K
# Memory use reduction. Not needed with 32G and does not help with 16G
#- --batchSize
#- 64m
volumes:
erigon-el-data:
jwtsecret: