Skip to content

Commit 5820a31

Browse files
OisinKyneKaloyanTanev
authored andcommitted
Using multiple files to avoid name conflicts
1 parent dae2b16 commit 5820a31

3 files changed

Lines changed: 56 additions & 7 deletions

File tree

Makefile

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
.PHONY: up down restart logs
2+
3+
COMPOSE=docker compose -f docker-compose.yml -f compose-grandine.yml
4+
5+
up:
6+
$(COMPOSE) up -d
7+
8+
down:
9+
$(COMPOSE) down
10+
11+
restart: down up
12+
13+
logs:
14+
$(COMPOSE) logs -f

compose-grandine.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Override any defaults specified by `${FOO:-bar}` in `.env` with `FOO=qux`.
2+
# ${VARIABLE:-default} evaluates to default if VARIABLE is unset or empty in the environment.
3+
# ${VARIABLE-default} evaluates to default only if VARIABLE is unset in the environment.
4+
5+
services:
6+
# _ _
7+
# __ _ _ __ __ _ _ __ __| (_)_ __ ___
8+
# / _` | '__/ _` | '_ \ / _` | | '_ \ / _ \
9+
# | (_| | | | (_| | | | | (_| | | | | | __/
10+
# \__, |_| \__,_|_| |_|\__,_|_|_| |_|\___|
11+
# |___/
12+
13+
beacon:
14+
profiles: [cl_grandine]
15+
image: sifrai/grandine:${GRANDINE_VERSION:-1.1.1}
16+
restart: unless-stopped
17+
command:
18+
- --datadir=/root/.grandine
19+
- --eth1-rpc-urls=http://execution:8551
20+
- --jwt-secret=/jwt
21+
- --http-address=0.0.0.0
22+
- --http-port=5052
23+
- --network=${NETWORK}
24+
- --metrics
25+
- --metrics-port=5054
26+
- --metrics-address=0.0.0.0
27+
- --checkpoint-sync-url=${LIGHTHOUSE_CHECKPOINT_SYNC_URL}
28+
- --builder=http://mev:18550
29+
ports:
30+
- 9000:9000 # TCP + UDP LibP2P
31+
volumes:
32+
- ./data/grandine:/data
33+
- ./jwt:/jwt:ro
34+
networks:
35+
- dvnode

docker-compose.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ services:
4545
# |_|_|\__, |_| |_|\__|_| |_|\___/ \__,_|___/\___|
4646
# |___/
4747

48-
lighthouse:
48+
beacon:
4949
profiles: [cl_lighthouse]
5050
image: sigp/lighthouse:${LIGHTHOUSE_VERSION:-v7.0.1}
5151
ports:
@@ -58,10 +58,10 @@ services:
5858
--network=${NETWORK}
5959
--checkpoint-sync-url=${LIGHTHOUSE_CHECKPOINT_SYNC_URL}
6060
--checkpoint-sync-url-timeout=600
61-
--execution-endpoint=http://nethermind:8551
61+
--execution-endpoint=http://execution:8551
6262
--execution-jwt=/opt/jwt/jwt.hex
6363
--datadir=/opt/app/beacon/
64-
--builder=http://mev-boost:18550
64+
--builder=http://mev:18550
6565
--http
6666
--http-address=0.0.0.0
6767
--http-port=5052
@@ -85,7 +85,7 @@ services:
8585
charon:
8686
image: obolnetwork/charon:${CHARON_VERSION:-v1.5.0}
8787
environment:
88-
- CHARON_BEACON_NODE_ENDPOINTS=${CHARON_BEACON_NODE_ENDPOINTS:-http://lighthouse:5052}
88+
- CHARON_BEACON_NODE_ENDPOINTS=${CHARON_BEACON_NODE_ENDPOINTS:-http://beacon:5052}
8989
- CHARON_BEACON_NODE_HEADERS=${CHARON_BEACON_NODE_HEADERS:-}
9090
- CHARON_BEACON_NODE_TIMEOUT=${CHARON_BEACON_NODE_TIMEOUT:-3s}
9191
- CHARON_BEACON_NODE_SUBMIT_TIMEOUT=${CHARON_BEACON_NODE_SUBMIT_TIMEOUT:-4s}
@@ -142,7 +142,7 @@ services:
142142
# | '_ ` _ \ / _ \ \ / /____| '_ \ / _ \ / _ \/ __| __|
143143
# | | | | | | __/\ V /_____| |_) | (_) | (_) \__ \ |_
144144
# |_| |_| |_|\___| \_/ |_.__/ \___/ \___/|___/\__|
145-
mev-boost:
145+
mev:
146146
profiles: [mev_mevboost]
147147
image: ${MEVBOOST_IMAGE:-flashbots/mev-boost}:${MEVBOOST_VERSION:-1.9}
148148
command: |
@@ -167,7 +167,7 @@ services:
167167
# |___/
168168

169169
prometheus:
170-
image: prom/prometheus:${PROMETHEUS_VERSION:-v2.46.0}
170+
image: prom/prometheus:${PROMETHEUS_VERSION:-v2.53.5}
171171
user: ":"
172172
networks: [dvnode]
173173
volumes:
@@ -190,7 +190,7 @@ services:
190190
restart: unless-stopped
191191

192192
loki:
193-
image: grafana/loki:${LOKI_VERSION:-2.8.2}
193+
image: grafana/loki:${LOKI_VERSION:-2.9.15}
194194
user: ":"
195195
networks: [dvnode]
196196
command: -config.file=/etc/loki/loki.yml

0 commit comments

Comments
 (0)