forked from ObolNetwork/charon-distributed-validator-node
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
157 lines (143 loc) · 4.04 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
version: "3.8"
services:
# _ _
# __ _ ___| |_| |__
# / _` |/ _ \ __| '_ \
# | (_| | __/ |_| | | |
# \__, |\___|\__|_| |_|
# |___/
geth:
image: ethereum/client-go:v1.10.21
ports:
- 30303:30303/tcp
- 30303:30303/udp
- 8545:8545
- 8551:8551/tcp
- 8551:8551/udp
command: |
--goerli
--http
--http.addr=0.0.0.0
--http.port=8545
--http.vhosts="*"
--http.api="db,eth,net,engine,rpc,web3"
--authrpc.jwtsecret="/root/jwt/jwt.hex"
--authrpc.addr=0.0.0.0
--authrpc.port=8551
--authrpc.vhosts="*"
networks: [dvnode]
volumes:
- ./data/geth:/root/.ethereum
- ./jwt:/root/jwt
restart: on-failure
# _ _ _ _ _
# | (_) __ _| |__ | |_| |__ ___ _ _ ___ ___
# | | |/ _` | '_ \| __| '_ \ / _ \| | | / __|/ _ \
# | | | (_| | | | | |_| | | | (_) | |_| \__ \ __/
# |_|_|\__, |_| |_|\__|_| |_|\___/ \__,_|___/\___|
# |___/
lighthouse:
image: sigp/lighthouse:v2.4.0
depends_on:
- geth
ports:
- 9000:9000/tcp
- 9000:9000/udp
- 5052:5052
command: |
lighthouse bn
--network=goerli
--purge-db
--checkpoint-sync-url=https://goerli.checkpoint-sync.ethdevops.io
--execution-endpoint=http://geth:8551
--execution-jwt=/opt/jwt/jwt.hex
--http
--http-address=0.0.0.0
--http-port=5052
networks: [dvnode]
volumes:
- ./data/lighthouse:/opt/app/beacon
- ./jwt:/opt/jwt
restart: on-failure
# _
# ___| |__ __ _ _ __ ___ _ __
# / __| '_ \ / _` | '__/ _ \| '_ \
# | (__| | | | (_| | | | (_) | | | |
# \___|_| |_|\__,_|_| \___/|_| |_|
charon:
# Pegged charon version (update this for each release).
# image: obolnetwork/charon:${CHARON_VERSION}
image: ghcr.io/obolnetwork/charon:827d675
depends_on:
- lighthouse
environment:
CHARON_BEACON_NODE_ENDPOINTS: http://lighthouse:5052
CHARON_JAEGER_ADDRESS: jaeger:6831
CHARON_VALIDATOR_API_ADDRESS: 0.0.0.0:3600
CHARON_P2P_TCP_ADDRESS: 0.0.0.0:3610
CHARON_MONITORING_ADDRESS: 0.0.0.0:3620
CHARON_P2P_UDP_ADDRESS: 0.0.0.0:3630
CHARON_P2P_BOOTNODE_RELAY: "true"
CHARON_LOG_LEVEL: info
CHARON_JAEGER_SERVICE: charon
CHARON_P2P_EXTERNAL_HOSTNAME: charon
networks: [dvnode]
volumes:
- .charon:/opt/charon/.charon
restart: on-failure
# _ _
# | |_ ___| | ___ _
# | __/ _ \ |/ / | | |
# | || __/ <| |_| |
# \__\___|_|\_\\__,_|
teku:
image: consensys/teku:22.7.0
depends_on:
- charon
- lighthouse
ports:
- 8008:8008
command: |
validator-client
--config-file "/opt/charon/teku/teku_config.yaml"
networks: [dvnode]
volumes:
- ".charon/validator_keys:/opt/charon/validator_keys"
- "./config:/opt/charon/teku"
restart: on-failure
# _ _ _
# _ __ ___ ___ _ __ (_) |_ ___ _ __(_)_ __ __ _
# | '_ ` _ \ / _ \| '_ \| | __/ _ \| '__| | '_ \ / _` |
# | | | | | | (_) | | | | | || (_) | | | | | | | (_| |
# |_| |_| |_|\___/|_| |_|_|\__\___/|_| |_|_| |_|\__, |
# |___/
prometheus:
image: prom/prometheus:latest
ports:
- "9090:9090"
networks: [dvnode]
volumes:
- ./prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
grafana:
image: grafana/grafana:latest
depends_on: [prometheus]
ports:
- "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
node-exporter:
image: prom/node-exporter:latest
ports:
- "9100:9100"
networks: [dvnode]
jaeger:
image: jaegertracing/all-in-one:latest
ports:
- "16686:16686"
networks: [dvnode]
networks:
dvnode: