forked from eth-educators/eth-docker
-
Notifications
You must be signed in to change notification settings - Fork 2
/
nethermind.yml
100 lines (97 loc) · 2.81 KB
/
nethermind.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
99
100
x-logging: &logging
logging:
driver: json-file
options:
max-size: 100m
max-file: "3"
tag: '{{.ImageName}}|{{.Name}}|{{.ImageFullID}}|{{.FullID}}'
services:
execution:
restart: "unless-stopped"
stop_grace_period: 5m
stop_signal: SIGINT
build:
context: ./nethermind
dockerfile: ${NM_DOCKERFILE}
args:
- BUILD_TARGET=${NM_SRC_BUILD_TARGET:-'$(git tag --sort=-committerdate | grep -E "^[0-9]+[.][0-9]+[.][0-9]+$" | head -1)'}
- SRC_REPO=${NM_SRC_REPO:-https://github.com/NethermindEth/nethermind}
- DOCKER_TAG=${NM_DOCKER_TAG:-latest}
- DOCKER_REPO=${NM_DOCKER_REPO:-nethermind/nethermind}
image: nethermind:local
pull_policy: never
user: nethermind
environment:
- JWT_SECRET=${JWT_SECRET}
- EL_EXTRAS=${EL_EXTRAS:-}
- ARCHIVE_NODE=${ARCHIVE_NODE:-}
- AUTOPRUNE_NM=${AUTOPRUNE_NM:-true}
- NETWORK=${NETWORK}
volumes:
- nethermind-el-data:/var/lib/nethermind
- nm-eth1-data:/var/lib/nethermind-og
- /etc/localtime:/etc/localtime:ro
- jwtsecret:/var/lib/nethermind/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
- ${NETWORK}-execution # This allows multiple Eth Docker stacks all connected to the same central traefik
<<: *logging
entrypoint:
- docker-entrypoint.sh
- /nethermind/nethermind
- --Init.WebSocketsEnabled
- "true"
- --Network.DiscoveryPort
- ${EL_P2P_PORT:-30303}
- --Network.P2PPort
- ${EL_P2P_PORT:-30303}
- --Network.MaxActivePeers
- ${EL_MAX_PEER_COUNT:-50}
- --HealthChecks.Enabled
- "true"
- --HealthChecks.UIEnabled
- "true"
- --JsonRpc.Enabled
- "true"
- --JsonRpc.Host
- 0.0.0.0
- --JsonRpc.Port
- ${EL_RPC_PORT:-8545}
- --JsonRpc.WebSocketsPort
- ${EL_WS_PORT:-8546}
- --JsonRpc.EngineHost
- 0.0.0.0
- --JsonRpc.EnginePort
- ${EE_PORT:-8551}
- --JsonRpc.AdditionalRpcUrls=http://127.0.0.1:1337|http|admin
- --JsonRpc.JwtSecretFile=/var/lib/nethermind/ee-secret/jwtsecret
- --Metrics.Enabled
- "true"
- --Metrics.PushGatewayUrl
- ""
- --Metrics.ExposeHost
- 0.0.0.0
- --Metrics.ExposePort
- "6060"
- --Pruning.FullPruningCompletionBehavior
- AlwaysShutdown
- --log
- ${LOG_LEVEL}
labels:
- metrics.scrape=true
- metrics.path=/metrics
- metrics.port=6060
- metrics.instance=execution
- metrics.network=${NETWORK}
volumes:
nethermind-el-data:
nm-eth1-data:
jwtsecret:
networks:
default:
enable_ipv6: ${IPV6:-false}