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
·131 lines (121 loc) · 3.28 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
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/nimbus/beacon:/mnt/beacon
- ./data/nimbus/validator/validators:/mnt/validators
- ./data/nimbus/validator/secrets:/mnt/secrets
- ./data/prometheus:/mnt/prometheus
<<: *logging
geth:
image: ethereum/client-go:${GETH_DOCKER_TAG}
restart: always
hostname: geth
command: --goerli --ws --ws.port=8545 --ws.addr=0.0.0.0 --ws.api="db,eth,net,web3" --ws.origins="*"
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: stereum/nimbus:${NIMBUS_DOCKER_TAG}
restart: unless-stopped
hostname: beacon-chain
depends_on:
- stereum-init
- geth
command:
- --network=pyrmont
- --data-dir=/opt/app/beacon
- --validators-dir=/opt/app/validators
- --secrets-dir=/opt/app/secrets
- --web3-url=ws://geth:8545
- --tcp-port=9000
- --udp-port=9000
- --rpc
- --rpc-port=9190
- --metrics
- --metrics-port=8008
- --metrics-address=0.0.0.0
- --rest
- --rest-address=0.0.0.0
- --graffiti="stereum.net"
ports:
- ${BEACON_API_IP}:9190:9190 # rpc
- 9000:9000/tcp
- 9000:9000/udp
networks:
default:
stereum-admin:
volumes:
- ./data/nimbus/beacon:/opt/app/beacon
- ./data/nimbus/validator/validators:/opt/app/validators
- ./data/nimbus/validator/secrets:/opt/app/secrets
<<: *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-n.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-n:/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
GF_INSTALL_PLUGINS: grafana-piechart-panel
<<: *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