forked from eth-educators/eth-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnm.yml
63 lines (63 loc) · 1.46 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
version: "3.4"
services:
eth1:
restart: "${RESTART}"
user: ${LOCAL_UID}:${LOCAL_UID}
build:
context: ./nethermind
dockerfile: ${NM_DOCKERFILE}
args:
- BUILD_TARGET=${NM_SRC_BUILD_TARGET}
- DOCKER_TAG=${NM_DOCKER_TAG}
- USER=${NM_USER}
- UID=${LOCAL_UID}
image: nethermind
volumes:
- nm-eth1-data:/var/lib/nethermind
ports:
- ${ETH1_PORT}:${ETH1_PORT}/tcp
- ${ETH1_PORT}:${ETH1_PORT}/udp
expose:
- ${ETH1_RPC_PORT}/tcp
- ${ETH1_WS_PORT}/tcp
entrypoint:
- dotnet
- /nethermind/Nethermind.Runner.dll
- --Init.BaseDbPath
- /var/lib/nethermind
- --Init.WebSocketsEnabled
- "true"
- --Sync.DownloadBodiesInFastSync
- "true"
- --Sync.DownloadReceiptsInFastSync
- "true"
- --Network.DiscoveryPort
- ${ETH1_PORT}
- --Network.P2PPort
- ${ETH1_PORT}
- --JsonRpc.Enabled
- "true"
- --JsonRpc.EnabledModules
- "net,eth"
- --JsonRpc.Host
- 0.0.0.0
- --JsonRpc.Port
- ${ETH1_RPC_PORT}
- --JsonRpc.WebSocketsPort
- ${ETH1_WS_PORT}
- --Sync.FastSync
- "true"
- --Sync.AncientBodiesBarrier
- ${ETH1_ANCIENT_BARRIER}
- --Sync.AncientReceiptsBarrier
- ${ETH1_ANCIENT_BARRIER}
- --config
- ${ETH1_NETWORK}
beacon:
depends_on:
- eth1
eth2:
depends_on:
- eth1
volumes:
nm-eth1-data: