forked from lukso-network/network-docker-containers
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.erigon.yml
53 lines (52 loc) · 1.51 KB
/
docker-compose.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
version: "3.8"
services:
init-erigon:
image: thorax/erigon:$ERIGON_VERSION
container_name: init-erigon
volumes:
- $EXECUTION_DATA_VOLUME:/execution_data
- $CONFIGS_VOLUME:/configs
command: >
--datadir=/execution_data init /configs/genesis.json
erigon:
image: thorax/erigon:$ERIGON_VERSION
container_name: erigon
depends_on:
- init-erigon
volumes:
- $EXECUTION_DATA_VOLUME:/execution_data
- $CONFIGS_VOLUME:/configs
restart: unless-stopped
stop_signal: SIGINT
stop_grace_period: 2m
command: >
--datadir=/execution_data
--networkid=$LUKSO_MAINNET_NETWORK_ID
--externalcl
--miner.gaslimit=42000000
--authrpc.jwtsecret=/configs/jwt.hex
--snapshots=0
--nat="extip:$EXTERNAL_IP"
--http
--http.addr="0.0.0.0"
--http.api="erigon,engine"
--http.vhosts="*"
--authrpc.addr="0.0.0.0"
--authrpc.port=8551
--authrpc.vhosts="*"
--bootnodes="$EXECUTION_BOOTSTRAP_NODE_1,$EXECUTION_BOOTSTRAP_NODE_2"
--metrics
--metrics.addr="0.0.0.0"
--ethstats="${NODE_NAME}:${ETH_STATS_SECRET}@${ETH_STATS_ADDRESS}"
# ports:
# - "30303:30303" # eth/66 peering
# - "30304:30304" # eth/67 peering
# - "9090:9090" # gRPC Connections
# - "42069:42069" # Snap sync (Bittorrent)
# - "6060:6060" # Metrics or Pprof
# - "8551:8551" # Engine API (JWT auth)
network_mode: host
logging:
driver: "local"
options:
max-size: "100m"