-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
54 lines (49 loc) · 1020 Bytes
/
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
version: '3.6'
services:
telegraf:
image: telegraf:1.16.3-alpine
volumes:
- ./telegraf/etc/telegraf.conf:/etc/telegraf/telegraf.conf
depends_on:
- influxdb
links:
- influxdb
ports:
- '${IP}:8125:8125/udp'
influxdb:
image: influxdb:1.8-alpine
env_file: .env
ports:
- '${IP}:8086:8086'
volumes:
- ./:/imports
- influxdb_data:/var/lib/influxdb
grafana:
image: grafana/grafana:7.3.4
depends_on:
- influxdb
env_file: .env
links:
- influxdb
ports:
- '${IP}:3000:3000'
volumes:
- grafana_data:/var/lib/grafana
- ./grafana/provisioning/:/etc/grafana/provisioning/
- ./grafana/dashboards/:/var/lib/grafana/dashboards/
proxy:
image: nginx
configs:
- source: nginx
target: /etc/nginx/nginx.conf
ports:
- "80:80"
depends_on:
- grafana
- influxdb
volumes:
grafana_data: {}
influxdb_data: {}
configs:
nginx:
file: ./nginx.conf