forked from eth-educators/eth-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
erigon.yml
87 lines (86 loc) · 1.9 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
version: "3.4"
x-logging: &logging
logging:
driver: json-file
options:
max-size: 10m
max-file: "3"
tag: '{{.ImageName}}|{{.Name}}|{{.ImageFullID}}|{{.FullID}}'
services:
erigon:
restart: "${RESTART}"
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
volumes:
- erigon-ec-data:/var/lib/erigon
- /etc/localtime:/etc/localtime:ro
ports:
- ${EC_P2P_PORT}:${EC_P2P_PORT}/tcp
- ${EC_P2P_PORT}:${EC_P2P_PORT}/udp
expose:
- 9090/tcp
- 6060/tcp
networks:
default:
aliases:
- eth1
<<: *logging
entrypoint:
- docker-entrypoint.sh
- erigon
- --private.api.addr
- 0.0.0.0:9090
- --datadir
- /var/lib/erigon
- --port
- ${EC_P2P_PORT}
- --nat
- any
- --chain
- ${EC_NETWORK}
- --prune=htc
- --metrics
- --metrics.addr
- 0.0.0.0
- --metrics.expensive
execution:
restart: "${RESTART}"
image: erigon:local
user: erigon
volumes:
- erigon-ec-data:/var/lib/erigon
- /etc/localtime:/etc/localtime:ro
expose:
- ${EC_RPC_PORT}/tcp
depends_on:
- erigon
pid: service:erigon # Use erigon's PID namespace. It's required to open Erigon's DB from another process (RPCDaemon local-mode)
entrypoint:
- rpcdaemon
- --datadir
- /var/lib/erigon
- --private.api.addr
- erigon:9090
- --txpool.api.addr
- erigon:9090
- --http.addr
- 0.0.0.0
- --http.vhosts=*
- --http.corsdomain=*
- --http.api
- web3,eth,net
- --http.port
- ${EC_RPC_PORT}
- --ws
eth:
depends_on:
- execution
volumes:
erigon-ec-data: