forked from ObolNetwork/charon-distributed-validator-node
-
Notifications
You must be signed in to change notification settings - Fork 15
/
docker-compose.yml
235 lines (217 loc) · 8.8 KB
/
docker-compose.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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
version: "3.8"
# Override any defaults specified by `${FOO:-bar}` in `.env` with `FOO=qux`.
# ${VARIABLE:-default} evaluates to default if VARIABLE is unset or empty in the environment.
# ${VARIABLE-default} evaluates to default only if VARIABLE is unset in the environment.
services:
# _ _ _ _
# _ __ ___| |_| |__ ___ _ __ _ __ ___ (_)_ __ __| |
# | '_ \ / _ \ __| '_ \ / _ \ '__| '_ ` _ \| | '_ \ / _` |
# | | | | __/ |_| | | | __/ | | | | | | | | | | | (_| |
# |_| |_|\___|\__|_| |_|\___|_| |_| |_| |_|_|_| |_|\__,_|
nethermind:
image: nethermind/nethermind:${NETHERMIND_VERSION:-1.27.0}
restart: unless-stopped
ports:
- ${NETHERMIND_PORT_P2P:-30303}:30303/tcp # P2P TCP
- ${NETHERMIND_PORT_P2P:-30303}:30303/udp # P2P UDP
- ${NETHERMIND_IP_HTTP:-127.0.0.1}:${NETHERMIND_PORT_HTTP:-8545}:8545 # JSON-RPC
- ${NETHERMIND_IP_ENGINE:-127.0.0.1}:${NETHERMIND_PORT_ENGINE:-8551}:8551 # ENGINE-API
command: |
--config=${NETWORK}
--datadir=data
--HealthChecks.Enabled=true
--JsonRpc.Enabled=true
--JsonRpc.JwtSecretFile="/root/jwt/jwt.hex"
--JsonRpc.EngineHost=0.0.0.0
--JsonRpc.EnginePort=8551
--JsonRpc.Host=0.0.0.0
--JsonRpc.Port=8545
--Metrics.Enabled=true
--Metrics.ExposePort=8008
--Sync.SnapSync=true
--Sync.AncientBodiesBarrier=4367322
--Sync.AncientReceiptsBarrier=4367322
networks: [dvnode]
volumes:
- ./data/nethermind:/nethermind/data
- ./jwt:/root/jwt
# _ _ _ _ _
# | (_) __ _| |__ | |_| |__ ___ _ _ ___ ___
# | | |/ _` | '_ \| __| '_ \ / _ \| | | / __|/ _ \
# | | | (_| | | | | |_| | | | (_) | |_| \__ \ __/
# |_|_|\__, |_| |_|\__|_| |_|\___/ \__,_|___/\___|
# |___/
lighthouse:
image: sigp/lighthouse:${LIGHTHOUSE_VERSION:-v5.3.0}
ports:
- ${LIGHTHOUSE_PORT_P2P:-9000}:9000/tcp # P2P TCP
- ${LIGHTHOUSE_PORT_P2P:-9000}:9000/udp # P2P UDP
command: |
lighthouse bn
--network=${NETWORK}
--checkpoint-sync-url=${LIGHTHOUSE_CHECKPOINT_SYNC_URL}
--checkpoint-sync-url-timeout=600
--execution-endpoint=http://nethermind:8551
--execution-jwt=/opt/jwt/jwt.hex
--datadir=/opt/app/beacon/
--builder=http://mev-boost:18550
--http
--http-address=0.0.0.0
--http-port=5052
--metrics
--metrics-address=0.0.0.0
--metrics-port=5054
--metrics-allow-origin="*"
networks: [dvnode]
volumes:
- ./data/lighthouse:/opt/app/beacon
- ./jwt:/opt/jwt
restart: unless-stopped
# _
# ___| |__ __ _ _ __ ___ _ __
# / __| '_ \ / _` | '__/ _ \| '_ \
# | (__| | | | (_| | | | (_) | | | |
# \___|_| |_|\__,_|_| \___/|_| |_|
charon:
image: obolnetwork/charon:${CHARON_VERSION:-v1.1.2}
environment:
- CHARON_BEACON_NODE_ENDPOINTS=${CHARON_BEACON_NODE_ENDPOINTS:-http://lighthouse:5052}
- CHARON_BEACON_NODE_TIMEOUT=${CHARON_BEACON_NODE_TIMEOUT:-2s}
- CHARON_BEACON_NODE_SUBMIT_TIMEOUT=${CHARON_BEACON_NODE_SUBMIT_TIMEOUT:-4s}
- CHARON_LOG_LEVEL=${CHARON_LOG_LEVEL:-debug}
- CHARON_LOG_FORMAT=${CHARON_LOG_FORMAT:-console}
- CHARON_P2P_RELAYS=${CHARON_P2P_RELAYS:-https://0.relay.obol.tech,https://1.relay.obol.tech/}
- CHARON_P2P_EXTERNAL_HOSTNAME=${CHARON_P2P_EXTERNAL_HOSTNAME:-} # Empty default required to avoid warnings.
- CHARON_P2P_TCP_ADDRESS=0.0.0.0:${CHARON_PORT_P2P_TCP:-3610}
- CHARON_VALIDATOR_API_ADDRESS=0.0.0.0:3600
- CHARON_MONITORING_ADDRESS=0.0.0.0:3620
- CHARON_BUILDER_API=${BUILDER_API_ENABLED:-true}
- CHARON_FEATURE_SET_ENABLE=eager_double_linear,consensus_participate
- CHARON_LOKI_ADDRESSES=${CHARON_LOKI_ADDRESSES:-http://loki:3100/loki/api/v1/push}
- CHARON_LOKI_SERVICE=charon
ports:
- ${CHARON_PORT_P2P_TCP:-3610}:${CHARON_PORT_P2P_TCP:-3610}/tcp # P2P TCP libp2p
networks: [dvnode]
volumes:
- .charon:/opt/charon/.charon
restart: unless-stopped
healthcheck:
test: wget -qO- http://localhost:3620/readyz
# _ _ _
# | | ___ __| | ___ ___| |_ __ _ _ __
# | |/ _ \ / _` |/ _ \/ __| __/ _` | '__|
# | | (_) | (_| | __/\__ \ || (_| | |
# |_|\___/ \__,_|\___||___/\__\__,_|_|
lodestar:
image: chainsafe/lodestar:${LODESTAR_VERSION:-v1.20.2}
depends_on: [charon]
entrypoint: /opt/lodestar/run.sh
networks: [dvnode]
environment:
BEACON_NODE_ADDRESS: http://charon:3600
NETWORK: ${NETWORK}
BUILDER_API_ENABLED: ${BUILDER_API_ENABLED:-true}
BUILDER_SELECTION: ${BUILDER_SELECTION:-builderalways}
volumes:
- ./lodestar/run.sh:/opt/lodestar/run.sh
- .charon/validator_keys:/home/charon/validator_keys
- ./data/lodestar:/opt/data
restart: unless-stopped
# _ _
# _ __ ___ _____ __ | |__ ___ ___ ___| |_
# | '_ ` _ \ / _ \ \ / /____| '_ \ / _ \ / _ \/ __| __|
# | | | | | | __/\ V /_____| |_) | (_) | (_) \__ \ |_
# |_| |_| |_|\___| \_/ |_.__/ \___/ \___/|___/\__|
mev-boost:
image: ${MEVBOOST_IMAGE:-flashbots/mev-boost}:${MEVBOOST_VERSION:-1.7}
command: |
-${NETWORK}
-loglevel=debug
-addr=0.0.0.0:18550
-relay-check
-relays=${MEVBOOST_RELAYS}
networks: [dvnode]
restart: unless-stopped
# _ _ _
# _ __ ___ ___ _ __ (_) |_ ___ _ __(_)_ __ __ _
# | '_ ` _ \ / _ \| '_ \| | __/ _ \| '__| | '_ \ / _` |
# | | | | | | (_) | | | | | || (_) | | | | | | | (_| |
# |_| |_| |_|\___/|_| |_|_|\__\___/|_| |_|_| |_|\__, |
# |___/
prometheus:
image: prom/prometheus:${PROMETHEUS_VERSION:-v2.46.0}
user: ":"
networks: [dvnode]
volumes:
- ./prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
- ./data/prometheus:/prometheus
restart: unless-stopped
grafana:
image: grafana/grafana:${GRAFANA_VERSION:-10.4.0}
user: ":"
ports:
- ${MONITORING_IP_GRAFANA:-0.0.0.0}:${MONITORING_PORT_GRAFANA:-3000}:3000
networks: [dvnode]
volumes:
- ./grafana/datasource.yml:/etc/grafana/provisioning/datasources/datasource.yml
- ./grafana/dashboards.yml:/etc/grafana/provisioning/dashboards/datasource.yml
- ./grafana/grafana.ini:/etc/grafana/grafana.ini:ro
- ./grafana/dashboards:/etc/dashboards
- ./data/grafana:/var/lib/grafana
restart: unless-stopped
loki:
image: grafana/loki:${LOKI_VERSION:-2.8.2}
user: ":"
networks: [dvnode]
command: -config.file=/etc/loki/loki.yml
volumes:
- ./loki/loki.yml:/etc/loki/loki.yml
- ./data/loki:/opt/loki
restart: unless-stopped
# _ _ _ _ _ _
# __ ____ _| (_) __| | __ _| |_ ___ _ __ ___ (_) ___ ___| |_ ___ _ __
# \ \ / / _` | | |/ _` |/ _` | __/ _ \| '__|____ / _ \| |/ _ \/ __| __/ _ \| '__|
# \ V / (_| | | | (_| | (_| | || (_) | | |_____| __/| | __/ (__| || (_) | |
# \_/ \__,_|_|_|\__,_|\__,_|\__\___/|_| \___|/ |\___|\___|\__\___/|_|
# |__/
validator-ejector:
image: lidofinance/validator-ejector:${VALIDATOR_EJECTOR_VERSION:-1.5.0}
user: ":"
networks: [dvnode]
volumes:
- ./validator-ejector:/exitmessages
restart: unless-stopped
environment:
- EXECUTION_NODE=${VE_EXECUTION_NODE_URL:-http://nethermind:8545}
- CONSENSUS_NODE=${VE_BEACON_NODE_URL:-http://lighthouse:5052}
- LOCATOR_ADDRESS=${VE_LOCATOR_ADDRESS}
- STAKING_MODULE_ID=${VE_STAKING_MODULE_ID:-2}
- OPERATOR_ID=${VE_OPERATOR_ID}
- ORACLE_ADDRESSES_ALLOWLIST=${VE_ORACLE_ADDRESSES_ALLOWLIST}
- MESSAGES_LOCATION=/exitmessages
- RUN_METRICS=true
- HTTP_PORT=8989
- DISABLE_SECURITY_DONT_USE_IN_PRODUCTION=${DISABLE_EJECTOR_SECURITY:-false}
# _ _ _ _ _ _
# | (_) __| | ___ __| |_ __ _____ _(_) |_
# | | |/ _` |/ _ \ _____ / _` \ \ / /____ / _ \ \/ / | __|
# | | | (_| | (_) |_____| (_| |\ V /_____| __/> <| | |_
# |_|_|\__,_|\___/ \__,_| \_/ \___/_/\_\_|\__|
#
lido-dv-exit:
image: obolnetwork/lido-dv-exit:${LIDO_DV_EXIT_VERSION:-c4c00c3}
user: ":"
networks: [dvnode]
volumes:
- ./validator-ejector:/exitmessages
- .charon:/charon
environment:
- LIDODVEXIT_BEACON_NODE_URL=${LIDO_DV_EXIT_BEACON_NODE_URL:-http://lighthouse:5052}
- LIDODVEXIT_CHARON_RUNTIME_DIR=/charon
- LIDODVEXIT_EJECTOR_EXIT_PATH=/exitmessages
- LIDODVEXIT_EXIT_EPOCH=${LIDODVEXIT_EXIT_EPOCH}
- LIDODVEXIT_LOG_LEVEL=${LIDO_DV_EXIT_LOG_LEVEL:-info}
- LIDODVEXIT_VALIDATOR_QUERY_CHUNK_SIZE=${LIDO_DV_EXIT_VALIDATOR_QUERY_CHUNK_SIZE:-5}
restart: unless-stopped
networks:
dvnode: