-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathdocker-compose.yml
executable file
·61 lines (58 loc) · 1.61 KB
/
docker-compose.yml
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
version: "2"
services:
telegraf:
image: telegraf
container_name: telegraf
restart: always
environment:
HOST_PROC: /rootfs/proc
HOST_SYS: /rootfs/sys
HOST_ETC: /rootfs/etc
ports:
- 9126:9126
volumes:
- ./telegraf/telegraf.conf:/etc/telegraf/telegraf.conf:ro
- /var/run/docker.sock:/var/run/docker.sock:ro
- /sys:/rootfs/sys:ro
- /proc:/rootfs/proc:ro
- /etc:/rootfs/etc:ro
depends_on:
- influxdb
grafana:
image: grafana/grafana:7.2.0
container_name: grafana
restart: unless-stopped
ports:
- 3000:3000
networks:
- monitoring
volumes:
- grafana-volume:/var/lib/grafana
- ./grafana/graf-datasource.yaml:/etc/grafana/provisioning/datasources/qrm-datasource.yaml
- ./grafana/graf-dashboard.yaml:/etc/grafana/provisioning/dashboards/qrm-dashboard.yaml
- ./grafana/quorum-test-dashboard.json:/etc/grafana/provisioning/dashboards/quorum-tps-dashboard.json
- ./grafana/quorum-jmeter-dashboard.json:/etc/grafana/provisioning/dashboards/quorum-jmeter-dashboard.json
depends_on:
- influxdb
influxdb:
image: influxdb:1.8.2
container_name: influxdb
restart: unless-stopped
ports:
- 8086:8086
networks:
- monitoring
volumes:
- influxdb-volume:/var/lib/influxdb
environment:
- INFLUXDB_DB=telegraf
- INFLUXDB_USER=telegraf
- INFLUXDB_USER_PASSWORD=test123
- INFLUXDB_ADMIN_ENABLED=true
- INFLUXDB_ADMIN_USER=admin
- INFLUXDB_ADMIN_PASSWORD=admin
networks:
monitoring:
volumes:
grafana-volume:
influxdb-volume: