-
Notifications
You must be signed in to change notification settings - Fork 51
/
docker-compose.yml
62 lines (57 loc) · 1.48 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
version: "3.7"
services:
influxdb:
image: influxdb:1.7-alpine
ports:
- "8086:8086" # HTTP API port
- "8083:8083" # Administrator
volumes:
- influx-storage:/var/lib/influxdb
telegraf:
image: telegraf:1.13-alpine
volumes:
- ./telegraf/telegraf.conf:/etc/telegraf/telegraf.conf:ro
ports:
- "57555:57555"
depends_on:
- influxdb
# grafana has more data sources
grafana:
image: grafana/grafana:6.5.0
ports:
- "3000:3000"
user: "104"
volumes:
- grafana-storage:/var/lib/grafana
depends_on:
- influxdb
# chronograf is similar to grafana, but supports only influxdb
# and provides some administration options for the whole stack
# select which one you prefer (or try both)
chronograf:
image: chronograf:1.7-alpine
ports:
- "8888:8888"
volumes:
- chronograf-storage:/var/lib/chronograf
depends_on:
- influxdb
command: ["--influxdb-url=http://influxdb:8086"]
# usually if you are using chronograf, you would also want to
# use kapacitor - TICK (Telegraf + InfluxDB + Chronograf + Kapacitor) vs
# TIG (Telegraf + InfluxDB + Grafana)
kapacitor:
image: kapacitor:1.5-alpine
ports:
- "9092:9092"
volumes:
- kapacitor-storage:/var/lib/kapacitor
depends_on:
- influxdb
environment:
- KAPACITOR_INFLUXDB_0_URLS_0=http://influxdb:8086
volumes:
grafana-storage:
influx-storage:
chronograf-storage:
kapacitor-storage: