-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yaml
81 lines (74 loc) · 1.82 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
version: "3.3"
networks:
monitor-network:
driver: bridge
volumes:
prometheus-volume:
driver: local
grafana-volume:
driver: local
testnet-volume:
driver: local
services:
qtum-testnet:
image: qtum/qtum:latest
container_name: qtum-testnet
restart: always
ports:
- "3889:3889"
command: qtumd -testnet -txindex -addrindex=1 -rpcbind=0.0.0.0:3889 -rpcallowip=0.0.0.0/0 -logevents -rpcuser=qtum -rpcpassword=testpasswd -deprecatedrpc=accounts -printtoconsole
networks:
- monitor-network
volumes:
- testnet-volume:/root/.qtum
prometheus:
image: prom/prometheus:latest
container_name: prometheus
user: root
ports:
- "9090:9090"
volumes:
- ./prometheus.yml:/etc/prometheus/prometheus.yml
- prometheus-volume:/prometheus
restart: always
command:
- "--config.file=/etc/prometheus/prometheus.yml"
- "--storage.tsdb.path=/prometheus"
- "--web.console.libraries=/usr/share/prometheus/console_libraries"
- "--web.console.templates=/usr/share/prometheus/consoles"
networks:
- monitor-network
depends_on:
- qtum-testnet
grafana:
image: grafana/grafana:latest
container_name: grafana
ports:
- "3000:3000"
restart: always
user: root
volumes:
- grafana-volume:/var/lib/grafana
networks:
- monitor-network
depends_on:
- qtum-testnet
- prometheus
qtum-exporter:
image: meherett/qtum-exporter:latest
container_name: qtum-exporter
ports:
- "6363:6363"
restart: always
environment:
QTUM_RPC_HOST: "qtum-testnet"
QTUM_RPC_PORT: "3889"
REFRESH_SECONDS: 5
LOG_LEVEL: "INFO"
TIMEOUT: 15
networks:
- monitor-network
depends_on:
- qtum-testnet
- prometheus
- grafana