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
/
Copy pathdocker-compose.yaml
executable file
·117 lines (107 loc) · 2.84 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
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
- ./data/consensys/teku:/mnt/teku
- ./config/teku/beacon.yaml:/mnt/config
- ./launchpad:/mnt/launchpad
<<: *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
networks:
default:
stereum-admin:
volumes:
- ./data/geth:/root/.ethereum
<<: *logging
beacon:
image: consensys/teku:${TEKU_DOCKER_TAG}
restart: always
hostname: beacon-chain
user: "2000"
depends_on:
- stereum-init
- geth
command: --config-file=/config/beacon.yaml
environment:
- "JAVA_OPTS=-Xmx3g"
ports:
- 9001:9001
- ${BEACON_API_IP}:5051:5051
networks:
default:
stereum-admin:
volumes:
- ./data/consensys/teku:/opt/teku/data
- ./config/teku/beacon.yaml:/config/beacon.yaml:ro
- ./launchpad:/launchpad
<<: *logging
prometheus:
image: prom/prometheus:${PROMETHEUS_DOCKER_TAG}
user: "2000"
restart: on-failure
hostname: prometheus
depends_on:
- stereum-init
command: --storage.tsdb.retention.time=7d --config.file=/etc/prometheus/prometheus.yml
ports:
- ${BEACON_API_IP}:9090:9090
volumes:
- ./config/prometheus/prometheus-t.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
ports:
- ${BEACON_API_IP}:3000:3000
volumes:
- ./config/grafana/provisioning-t:/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
<<: *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