-
Notifications
You must be signed in to change notification settings - Fork 8
/
docker-compose.yml
74 lines (69 loc) · 2.26 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
62
63
64
65
66
67
68
69
70
71
72
73
74
version: '2'
volumes:
grafana_data_2: {}
services:
# -------------------------------------------------------------------------
# Grafana - Graphical Interface
# -------------------------------------------------------------------------
grafana:
image: grafana/grafana:5.4.3
volumes:
- /etc/localtime:/etc/localtime
- grafana_data_2:/var/lib/grafana
- ./config/grafana.ini:/etc/grafana/grafana.ini
depends_on:
- prometheus
ports:
- "3000:3000"
# -------------------------------------------------------------------------
# Prometheus -
# -------------------------------------------------------------------------
prometheus:
image: prom/prometheus:v2.4.3
volumes:
- ./config/prometheus.yml:/etc/prometheus/prometheus.yml
- ./config/alert.rules:/etc/prometheus/alert.rules
- /etc/localtime:/etc/localtime
command:
- '--config.file=/etc/prometheus/prometheus.yml'
- '--storage.tsdb.retention=3d'
ports:
- '9090:9090'
# -------------------------------------------------------------------------
# influxdb
# -------------------------------------------------------------------------
influxdb:
image: influxdb:1.8.2-alpine
volumes:
- /etc/localtime:/etc/localtime
- ./influxdb/scripts/:/docker-entrypoint-initdb.d/
environment:
INFLUXDB_MONITOR_STORE_ENABLED: 'false'
ports:
- "8086:8086"
# -------------------------------------------------------------------------
# Telegraf - Prom
# -------------------------------------------------------------------------
telegraf-prom:
image: apstra/telegraf:latest
command: telegraf -debug
env_file:
- variables.env
volumes:
- ./config/telegraf-prom.toml:/etc/telegraf/telegraf.conf
- /etc/localtime:/etc/localtime
ports:
- '6666:6666'
# -------------------------------------------------------------------------
# Telegraf - Influx
# -------------------------------------------------------------------------
telegraf-influx:
image: apstra/telegraf:latest
command: telegraf -debug
env_file:
- variables.env
volumes:
- ./config/telegraf-influx.toml:/etc/telegraf/telegraf.conf
- /etc/localtime:/etc/localtime
ports:
- '4444:4444'