forked from eth-educators/eth-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
nm.yml
78 lines (77 loc) · 1.7 KB
/
nm.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
version: "3.4"
x-logging: &logging
logging:
driver: json-file
options:
max-size: 10m
max-file: "3"
tag: '{{.ImageName}}|{{.Name}}|{{.ImageFullID}}|{{.FullID}}'
services:
execution:
restart: "${RESTART}"
stop_grace_period: 3m
build:
context: ./nethermind
dockerfile: ${NM_DOCKERFILE}
args:
- BUILD_TARGET=${NM_SRC_BUILD_TARGET}
- DOCKER_TAG=${NM_DOCKER_TAG}
image: nethermind:local
user: nethermind
volumes:
- nm-eth1-data:/var/lib/nethermind
ports:
- ${EC_P2P_PORT}:${EC_P2P_PORT}/tcp
- ${EC_P2P_PORT}:${EC_P2P_PORT}/udp
expose:
- ${EC_RPC_PORT}/tcp
- ${EC_WS_PORT}/tcp
networks:
default:
aliases:
- eth1
<<: *logging
entrypoint:
- dotnet
- /nethermind/Nethermind.Runner.dll
- --datadir
- /var/lib/nethermind
- --Init.WebSocketsEnabled
- "true"
- --Network.DiscoveryPort
- ${EC_P2P_PORT}
- --Network.P2PPort
- ${EC_P2P_PORT}
- --JsonRpc.Enabled
- "true"
- --JsonRpc.EnabledModules
- "Web3,Eth,Subscribe,Net"
- --JsonRpc.Host
- 0.0.0.0
- --JsonRpc.Port
- ${EC_RPC_PORT}
- --JsonRpc.WebSocketsPort
- ${EC_WS_PORT}
- --Sync.FastSync
- "true"
- --Metrics.Enabled
- "true"
- --Metrics.ExposePort
- "6060"
- --config
- ${EC_NETWORK}
- --Pruning.Enabled
- "true"
- --Pruning.CacheMb
- "4096"
- --Sync.AncientBodiesBarrier
- "1"
- --Sync.AncientReceiptsBarrier
- "1"
- --log
- ${LOG_LEVEL}
eth:
depends_on:
- execution
volumes:
nm-eth1-data: