Repository navigation
Expand file tree
/
Copy pathnimbus-el.yml
More file actions
79 lines (76 loc) · 2.25 KB
/
Copy pathnimbus-el.yml
File metadata and controls
79 lines (76 loc) · 2.25 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
74
75
76
77
78
79
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: ./nimbus-el
dockerfile: ${NIMEL_DOCKERFILE}
args:
- BUILD_TARGET=${NIMEL_SRC_BUILD_TARGET:-master}
- SRC_REPO=${NIMEL_SRC_REPO:-https://github.com/status-im/nimbus-eth1}
- DOCKER_TAG=${NIMEL_DOCKER_TAG:-master}
- DOCKER_REPO=${NIMEL_DOCKER_REPO:-statusim/nimbus-eth1}
stop_grace_period: 5m
stop_signal: SIGINT
image: nimbus-el:local
pull_policy: never
user: user
environment:
- JWT_SECRET=${JWT_SECRET:-}
- EL_EXTRAS=${EL_EXTRAS:-}
- NODE_TYPE=${EL_NODE_TYPE:-pre-merge-expiry}
- NETWORK=${NETWORK}
- ERA1_URL=${ERA1_URL:-}
- ERA_URL=${ERA_URL:-}
volumes:
- nimbus-el-data:/var/lib/nimbus
- /etc/localtime:/etc/localtime:ro
- jwtsecret:/var/lib/nimbus/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
# This allows multiple Eth Docker stacks all connected to the same bridge network
- ${EL_ALIAS:-default-execution}
<<: *logging
entrypoint:
- docker-entrypoint.sh
- nimbus_execution_client
- --rpc
- --http-address=0.0.0.0
- --http-port=${EL_RPC_PORT:-8545}
- --ws
- --data-dir=/var/lib/nimbus
- --tcp-port=${EL_P2P_PORT:-30303}
- --discovery=V5
- --metrics
- --metrics-port=6060
- --metrics-address=0.0.0.0
- --jwt-secret=/var/lib/nimbus/ee-secret/jwtsecret
- --engine-api
- --engine-api-port=${EE_PORT:-8551}
- --engine-api-address=0.0.0.0
- --engine-api-ws
- ${EL_MAX_PEER_COUNT:+--max-peers=${EL_MAX_PEER_COUNT}}
- --log-level=${LOG_LEVEL}
labels:
- metrics.scrape=true
- metrics.path=/metrics
- metrics.port=6060
- metrics.instance=execution
- metrics.network=${NETWORK}
volumes:
nimbus-el-data:
jwtsecret:
networks:
default:
enable_ipv6: ${IPV6:-false}