-
Notifications
You must be signed in to change notification settings - Fork 162
Expand file tree
/
Copy patheth1.tmpl
More file actions
73 lines (72 loc) · 2.95 KB
/
eth1.tmpl
File metadata and controls
73 lines (72 loc) · 2.95 KB
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
# Autogenerated - DO NOT MODIFY THIS FILE DIRECTLY
# If you want to overwrite some of these values with your own customizations,
# please add them to `override/eth1.yml`.
#
# See https://docs.docker.com/compose/extends/#adding-and-overriding-configuration
# for more information on overriding specific parameters of docker-compose files.
services:
eth1:
image: {{.GetECContainerTag}}
user: root
container_name: {{.Smartnode.ProjectName}}_eth1
restart: unless-stopped
stop_signal: {{.GetECStopSignal}}
stop_grace_period: 15m
{{- $p2p := (or .ExecutionCommon.P2pPort.Value "30303")}}
ports: [ "{{$p2p}}:{{$p2p}}/udp", "{{$p2p}}:{{$p2p}}/tcp"{{.GetECOpenAPIPorts}} ]
volumes:
- eth1clientdata:/ethclient
- {{.RocketPoolDirectory}}/scripts:/setup:ro
- {{.RocketPoolDirectory}}/devnet:/devnet:ro"
- {{.Smartnode.DataPath}}/secrets:/secrets
- {{.RocketPoolDirectory}}/config.toml:/genesis/config.toml:ro
networks:
- net
environment:
- NETWORK={{.Smartnode.Network}}
- CLIENT={{.ExecutionClient}}
- ETHSTATS_LABEL={{.ExecutionCommon.EthstatsLabel}}
- ETHSTATS_LOGIN={{.ExecutionCommon.EthstatsLogin}}
- EC_MAX_PEERS={{.GetECMaxPeers}}
- EC_P2P_PORT={{$p2p}}
- EC_SUGGESTED_BLOCK_GAS_LIMIT={{.ExecutionCommon.SuggestedBlockGasLimit}}
- EC_PRUNING_MODE={{.ExecutionCommon.PruningMode}}
- EC_ADDITIONAL_FLAGS={{.GetECAdditionalFlags}}
- EC_HTTP_PORT={{.ExecutionCommon.HttpPort}}
- EC_WS_PORT={{.ExecutionCommon.WsPort}}
- EC_ENGINE_PORT={{.ExecutionCommon.EnginePort}}
- EXTERNAL_IP={{.GetExternalIp}}
- ENABLE_METRICS={{.EnableMetrics}}
- EC_METRICS_PORT={{.EcMetricsPort}}
{{- /* Client-specific values */}}
{{- if eq .ExecutionClient.String "besu"}}
- BESU_MAX_BACK_LAYERS={{.Besu.MaxBackLayers}}
- BESU_JVM_HEAP_SIZE={{.Besu.JvmHeapSize}}
{{- else if eq .ExecutionClient.String "nethermind"}}
- EC_CACHE_SIZE={{.Nethermind.CacheSize}}
- RP_NETHERMIND_PRUNE_MEM_SIZE={{.Nethermind.PruneMemSize}}
- RP_NETHERMIND_ADDITIONAL_MODULES={{.Nethermind.AdditionalModules}}
- RP_NETHERMIND_ADDITIONAL_URLS={{.Nethermind.AdditionalUrls}}
- RP_NETHERMIND_FULL_PRUNE_MEMORY_BUDGET={{.Nethermind.FullPruneMemoryBudget}}
- RP_NETHERMIND_FULL_PRUNING_MAX_DEGREE_PARALLELISM={{.Nethermind.FullPruningMaxDegreeOfParallelism}}
- RP_NETHERMIND_FULL_PRUNING_THRESHOLD_MB={{.Nethermind.FullPruningThresholdMb}}
{{- else if eq .ExecutionClient.String "geth"}}
- GETH_EVM_TIMEOUT={{.Geth.EvmTimeout}}
{{- else if eq .ExecutionClient.String "reth"}}
- RETH_MAX_INBOUND_PEERS={{.Reth.MaxInboundPeers}}
{{- end}}
entrypoint: sh
command: "/setup/start-ec.sh"
cap_drop:
- all
cap_add:
- dac_override
security_opt:
- no-new-privileges
networks:
net:
{{- if .IsIPv6Enabled}}
enable_ipv6: true
{{- end}}
volumes:
eth1clientdata: