This repository has been archived by the owner on Jan 20, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 27
/
docker-compose.yaml
executable file
·251 lines (230 loc) · 6.39 KB
/
docker-compose.yaml
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
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
version: "3.7"
x-logging: &logging
logging:
driver: "json-file"
options:
max-file: "10"
max-size: "100m"
services:
stereum-init:
image: stereum/init:buster
restart: "no"
volumes:
- ./data/grafana:/mnt/grafana
- ./data/sigmaprime/lighthouse:/mnt/lighthouse
- ./data/sigmaprime/slasher:/mnt/slasher
<<: *logging
geth:
container_name: geth
image: ethereum/client-go:${GETH_DOCKER_TAG}
restart: unless-stopped
command: --goerli --http --http.port=8545 --http.addr=0.0.0.0 --http.vhosts="*" --allow-insecure-unlock --http.api="db,eth,net,web3,personal"
stop_grace_period: 5m
ports:
- 30303:30303/tcp
- 30303:30303/udp
- ${BEACON_API_IP}:8545:8545
volumes:
- ./data/geth:/root/.ethereum
networks:
- n_bridge
- stereum-admin
<<: *logging
prysm_beacon:
container_name: prysm_beacon
image: gcr.io/prysmaticlabs/prysm/beacon-chain:${PRYSM_DOCKER_TAG}
restart: unless-stopped
command: --config-file=/config/beacon.yaml
volumes:
- ./config/prysm/beacon.yaml:/config/beacon.yaml:ro
- ./data/prysm/beacon:/data
ports:
- ${BEACON_API_IP}:4000:4000
- ${BEACON_API_IP}:8900:8080
- 13000:13000/tcp
- 12000:12000/udp
networks:
- n_vouch_beacons
- n_bridge
- stereum-admin
<<: *logging
prysm_beacon_slasher:
container_name: prysm_beacon_slasher
image: gcr.io/prysmaticlabs/prysm/beacon-chain:${PRYSM_DOCKER_TAG}
restart: unless-stopped
command: --config-file=/config/beacon.yaml
volumes:
- ./config/prysm/slasher/beacon.yaml:/config/beacon.yaml:ro
- ./data/prysm/beacon-slasher:/data
ports:
- ${BEACON_API_IP}:4001:4000
- ${BEACON_API_IP}:8901:8080
- 13001:13000/tcp
- 12001:12000/udp
networks:
- n_vouch_beacons
- n_bridge
- n_slasher_beacon
- stereum-admin
<<: *logging
prysm_slasher:
container_name: prysm_slasher
image: gcr.io/prysmaticlabs/prysm/slasher:${PRYSM_SLASHER_DOCKER_TAG}
restart: unless-stopped
hostname: slasher
depends_on:
- prysm_beacon_slasher
command: --config-file=/config/slasher.yaml
volumes:
- ./config/prysm/slasher/slasher.yaml:/config/slasher.yaml:ro
- ./data/prysm/slasher:/data
ports:
- ${BEACON_API_IP}:8902:8680
networks:
- n_slasher_beacon
<<: *logging
lighthouse_beacon:
container_name: lighthouse_beacon
image: stereum/lighthouse:${LIGHTHOUSE_DOCKER_TAG}
user: "2000"
depends_on:
- stereum-init
restart: unless-stopped
env_file: ./config/lighthouse/beacon.env
entrypoint: /opt/app/start/beacon.sh
volumes:
- ./data/sigmaprime/lighthouse:/opt/app/beacon
- ./data/sigmaprime/slasher:/opt/app/slasher
ports:
- ${BEACON_API_IP}:5052:5052/tcp
- ${BEACON_API_IP}:8910:5054
- 9000:9000/tcp
- 9000:9000/udp
networks:
- n_vouch_beacons
- n_bridge
- stereum-admin
<<: *logging
teku_beacon:
container_name: teku_beacon
image: consensys/teku:${TEKU_DOCKER_TAG}
user: "0:0"
restart: unless-stopped
command: ["--config-file=/opt/teku/beacon.yaml"]
environment:
- "JAVA_OPTS=-Xmx8g"
volumes:
- ./config/teku/beacon-mc.yaml:/opt/teku/beacon.yaml:ro
- ./data/consensys/teku:/opt/teku/data
ports:
- ${BEACON_API_IP}:5051:5051/tcp
- ${BEACON_API_IP}:8920:8008
- 9001:9001/tcp
- 9001:9001/udp
networks:
- n_vouch_beacons
- n_bridge
- stereum-admin
<<: *logging
vouch:
container_name: vouch
image: attestant/vouch:${VOUCH_DOCKER_TAG}
restart: unless-stopped
command: ["--base-dir=/config"]
volumes:
- ./config/vouch/vouch.yml:/config/vouch.yml:ro
- ./config/vouch/certs:/config/certs:ro
networks:
- n_dirk_vouch
- n_vouch_beacons
<<: *logging
dirk:
container_name: dirk
image: attestant/dirk:${DIRK_DOCKER_TAG}
restart: unless-stopped
command: ["--base-dir=/config"]
volumes:
- ./config/dirk/dirk.yml:/config/dirk.yml:ro
- ./config/dirk/certs:/config/certs:ro
- ./wallets:/wallets:ro
- ./config/dirk/passphrases:/config/passphrases:ro
- ./data/attestant/dirk:/data
networks:
- n_dirk_vouch
<<: *logging
prometheus:
container_name: prometheus
image: prom/prometheus:${PROMETHEUS_DOCKER_TAG}
user: root # https://github.com/prometheus/prometheus/issues/5976
restart: unless-stopped
hostname: prometheus
command: --storage.tsdb.retention.time=7d --config.file=/etc/prometheus/prometheus.yml
ports:
- ${BEACON_API_IP}:9090:9090
volumes:
- ./config/prometheus/prometheus.yaml:/etc/prometheus/prometheus.yml:ro
- ./data/prometheus:/prometheus
networks:
- n_grafana_prometheus
- n_dirk_vouch
- n_vouch_beacons
- n_slasher_beacon
<<: *logging
grafana:
container_name: grafana
image: grafana/grafana:${GRAFANA_DOCKER_TAG}
restart: unless-stopped
hostname: grafana
user: "2000"
depends_on:
- stereum-init
- prometheus
ports:
- ${BEACON_API_IP}:3000:3000
volumes:
- ./config/grafana/provisioning:/etc/grafana/provisioning:ro
- ./data/grafana:/var/lib/grafana
- ./config/grafana/grafana.ini:/etc/grafana/grafana.ini:ro
environment:
GF_RENDERING_SERVER_URL: http://renderer:8082/render
GF_RENDERING_CALLBACK_URL: http://grafana:3000
networks:
- n_grafana_prometheus
- n_bridge
<<: *logging
renderer:
image: grafana/grafana-image-renderer:${GRAFANA_IMAGE_RENDERER_TAG}
user: "2000"
restart: on-failure
hostname: renderer
environment:
ENABLE_METRICS: 'true'
HTTP_PORT: 8082
networks:
- n_grafana_prometheus
<<: *logging
node-exporter:
image: prom/node-exporter:${PROMETHEUS_NODE_EXPORTER_DOCKER_TAG}
user: "2000"
hostname: node-exporter
networks:
- n_grafana_prometheus
<<: *logging
networks:
# bridge network - this networks gets internet access!
n_bridge:
# vouch to beacons
n_vouch_beacons:
internal: yes
# slasher to beacon:
n_slasher_beacon:
internal: yes
# dirk to vouch
n_dirk_vouch:
internal: yes
# grafana to prometheus
n_grafana_prometheus:
internal: yes
stereum-admin:
internal: true
# EOF