-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathdocker-compose.yaml
92 lines (89 loc) · 3.49 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
version: "3.7"
x-logging: &logging
logging:
driver: "json-file"
options:
max-file: "10"
max-size: "100m"
services:
geth:
container_name: geth
image: ethereum/client-go:v1.9.14
restart: always
hostname: geth
command: --goerli --rpc --rpcport=8545 --rpcaddr=0.0.0.0 --rpcvhosts="*" --allow-insecure-unlock --rpcapi="db,eth,net,web3,personal"
ports:
- 30303:30303/tcp
- 30303:30303/udp
- 127.0.0.1:8545:8545
volumes:
- ./geth:/root/.ethereum
<<: *logging
beacon:
container_name: beacon-chain
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:
- 127.0.0.1:4000:4000
- 13000:13000/tcp
- 12000:12000/udp
volumes:
- ./config/beacon.yaml:/config/beacon.yaml:ro
- ./beacon:/data
<<: *logging
validator:
container_name: validator
image: gcr.io/prysmaticlabs/prysm/validator:${PRYSM_DOCKER_TAG}
restart: on-failure
hostname: validator
depends_on:
- beacon
command: --config-file=/config/validator.yaml
volumes:
- ./config/validator.yaml:/config/validator.yaml:ro
- ./validator:/data
<<: *logging
slasher:
container_name: slasher
image: gcr.io/prysmaticlabs/prysm/slasher:${PRYSM_DOCKER_TAG}
restart: always
hostname: slasher
depends_on:
- beacon
command: --config-file=/config/slasher.yaml
volumes:
- ./config/slasher.yaml:/config/slasher.yaml:ro
- ./slasher:/data
<<: *logging
prometheus:
container_name: prometheus
image: prom/prometheus:v2.19.0
user: root # https://github.com/prometheus/prometheus/issues/5976
restart: on-failure
hostname: prometheus
command: --storage.tsdb.retention.time=31d --config.file=/etc/prometheus/prometheus.yml
ports:
- 127.0.0.1:9090:9090
volumes:
- ./config/prometheus.yaml:/etc/prometheus/prometheus.yml
- ./prometheus:/prometheus
<<: *logging
grafana:
container_name: grafana
image: grafana/grafana:7.0.3
restart: on-failure
hostname: grafana
depends_on:
- prometheus
ports:
- 127.0.0.1:3000:3000
volumes:
- ./grafana/provisioning:/etc/grafana/provisioning
- grafana_data:/var/lib/grafana
<<: *logging
volumes:
grafana_data: