forked from eth-educators/eth-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
geth.yml
89 lines (88 loc) · 2.07 KB
/
geth.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
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: ./geth
dockerfile: ${GETH_DOCKERFILE}
args:
- BUILD_TARGET=${GETH_SRC_BUILD_TARGET}
- DOCKER_TAG=${GETH_DOCKER_TAG}
stop_grace_period: 5m
image: geth:local
user: geth
environment:
- JWT_SECRET=${JWT_SECRET:-}
- LOG_LEVEL=${LOG_LEVEL:-info}
- EL_EXTRAS=${EL_EXTRAS:-}
- ARCHIVE_NODE=${ARCHIVE_NODE:-}
volumes:
- geth-eth1-data:/var/lib/goethereum
- /etc/localtime:/etc/localtime:ro
- jwtsecret:/var/lib/goethereum/ee-secret
ports:
- ${HOST_IP:-}${EL_P2P_PORT:-30303}:${EL_P2P_PORT:-30303}/tcp
- ${HOST_IP:-}${EL_P2P_PORT:-30303}:${EL_P2P_PORT:-30303}/udp
networks:
default:
aliases:
- eth1
<<: *logging
entrypoint:
- docker-entrypoint.sh
- geth
- --http
- --http.addr
- 0.0.0.0
- --http.vhosts=*
- --http.corsdomain=*
- --http.api
- web3,eth,net
- --datadir
- /var/lib/goethereum
- --port
- ${EL_P2P_PORT:-30303}
- --http.port
- ${EL_RPC_PORT:-8545}
- --ws
- --ws.addr
- 0.0.0.0
- --ws.port
- ${EL_WS_PORT:-8546}
- --ws.api
- web3,eth,net
- --ws.origins=*
- --${NETWORK}
- --metrics
- --metrics.expensive
- --pprof
- --pprof.addr
- 0.0.0.0
- --authrpc.jwtsecret
- /var/lib/goethereum/ee-secret/jwtsecret
- --authrpc.addr
- 0.0.0.0
- --authrpc.port
- ${EE_PORT:-8551}
- --authrpc.vhosts=*
- --maxpeers
- ${EL_MAX_PEER_COUNT:-50}
set-prune-marker:
profiles: ["tools"]
image: alpine:3
user: "10001:10001"
restart: "no"
volumes:
- geth-eth1-data:/var/lib/goethereum
entrypoint: ["/bin/sh","-c"]
command: /bin/sh
volumes:
geth-eth1-data:
jwtsecret: