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 24
/
docker-compose.yaml
executable file
·134 lines (122 loc) · 3.38 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
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/prometheus:/mnt/prometheus
<<: *logging
geth:
image: ethereum/client-go:${GETH_DOCKER_TAG}
restart: always
hostname: geth
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
<<: *logging
beacon:
image: gcr.io/prysmaticlabs/prysm/beacon-chain:${PRYSM_DOCKER_TAG}
restart: always
hostname: beacon-chain
depends_on:
- geth
command: --config-file=/config/beacon.yaml
ports:
- ${BEACON_API_IP}:4000:4000
- 13000:13000/tcp
- 12000:12000/udp
networks:
default:
aliases:
- prysm_beacon_slasher
stereum-admin:
volumes:
- ./config/prysm/slasher/beacon.yaml:/config/beacon.yaml:ro
- ./data/prysm/beacon-slasher:/data
<<: *logging
validator:
image: gcr.io/prysmaticlabs/prysm/validator:${PRYSM_DOCKER_TAG}
restart: on-failure
hostname: validator
depends_on:
- beacon
command: --config-file=/config/validator.yaml
ports:
- ${BEACON_API_IP}:7500:7500/tcp # web-ui
volumes:
- ./config/prysm/validator.yaml:/config/validator.yaml:ro
- ./data/prysm/validator:/data
<<: *logging
slasher:
image: gcr.io/prysmaticlabs/prysm/slasher:${PRYSM_SLASHER_DOCKER_TAG}
restart: always
hostname: slasher
depends_on:
- beacon
command: --config-file=/config/slasher.yaml
volumes:
- ./config/prysm/slasher/slasher.yaml:/config/slasher.yaml:ro
- ./data/prysm/slasher:/data
<<: *logging
prometheus:
image: prom/prometheus:${PROMETHEUS_DOCKER_TAG}
user: "2000"
restart: on-failure
hostname: prometheus
command: --storage.tsdb.retention.time=31d --config.file=/etc/prometheus/prometheus.yml
ports:
- ${BEACON_API_IP}:9090:9090
volumes:
- ./config/prometheus/prometheus-p.yaml:/etc/prometheus/prometheus.yml
- ./data/prometheus:/prometheus
<<: *logging
grafana:
image: grafana/grafana:${GRAFANA_DOCKER_TAG}
restart: on-failure
hostname: grafana
user: "2000"
depends_on:
- stereum-init
- prometheus
- renderer
ports:
- ${BEACON_API_IP}:3000:3000
volumes:
- ./config/grafana/provisioning-p:/etc/grafana/provisioning
- ./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
<<: *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
<<: *logging
node-exporter:
image: prom/node-exporter:${PROMETHEUS_NODE_EXPORTER_DOCKER_TAG}
user: "2000"
hostname: node-exporter
<<: *logging
networks:
stereum-admin:
internal: true
default:
# EOF