-
Notifications
You must be signed in to change notification settings - Fork 227
/
docker-compose.yml
177 lines (166 loc) · 6.67 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
# 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.29.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.AncientBodiesBarrier=${NETHERMIND_ANCIENT_BODIES_BARRIER:-0}
--Sync.AncientReceiptsBarrier=${NETHERMIND_ANCIENT_RECEIPTS_BARRIER:-0}
--Sync.SnapSync=true
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.2.0}
environment:
- CHARON_BEACON_NODE_ENDPOINTS=${CHARON_BEACON_NODE_ENDPOINTS:-http://lighthouse:5052}
- CHARON_BEACON_NODE_TIMEOUT=${CHARON_BEACON_NODE_TIMEOUT:-3s}
- CHARON_BEACON_NODE_SUBMIT_TIMEOUT=${CHARON_BEACON_NODE_SUBMIT_TIMEOUT:-4s}
- CHARON_LOG_LEVEL=${CHARON_LOG_LEVEL:-info}
- 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:-false}
- CHARON_FEATURE_SET_ENABLE=${CHARON_FEATURE_SET_ENABLE:-}
- 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.23.0}
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:-false}
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.8.1}
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.50.1}
user: ":"
networks: [dvnode]
environment:
PROM_REMOTE_WRITE_TOKEN: ${PROM_REMOTE_WRITE_TOKEN:-"obol-monitoring-token-needed"}
SERVICE_OWNER: ${SERVICE_OWNER:-"obol-cdvn"}
volumes:
- ./prometheus:/etc/prometheus
- ./data/prometheus:/prometheus
entrypoint: /etc/prometheus/run.sh
restart: unless-stopped
grafana:
image: grafana/grafana:${GRAFANA_VERSION:-10.4.2}
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
networks:
dvnode: