forked from elafargue/rpi-tig
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
52 lines (50 loc) · 1.19 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
influxdb:
image: influxdb:latest
container_name: influxdb
restart: always
# mem_limit: 192m
# Those ports don't need to be exposed to the local host, only
# Telegraf/grafana are talking to it.
# ports:
# - "8083:8083"
# - "8086:8086"
# - "8090:8090"
env_file:
- 'env.influxdb'
volumes:
# Data persistency
- ./influxdb/data:/var/lib/influxdb
# Configuration
- ./influxdb/influxdb.conf:/etc/influxdb/influxdb.conf:ro
telegraf:
image: telegraf:latest
container_name: telegraf
restart: always
environment:
- HOST_PROC=/host/proc
privileged: true
# mem_limit: 384m
ports:
# Expose Statsd UDP server to local host
- "8125:8125/udp"
links:
- influxdb
volumes:
- ./telegraf/telegraf.conf:/etc/telegraf/telegraf.conf:ro
- /proc:/host/proc:ro
grafana:
image: grafana/grafana:master
container_name: grafana
restart: always
# mem_limit: 384m
ports:
- "3000:3000"
env_file:
- 'env.grafana'
links:
- influxdb
volumes:
# Data persistency
# sudo mkdir -p /srv/docker/grafana/data; chown 472:472 /srv/docker/grafana/data
- ./grafana/data:/var/lib/grafana
- ./grafana/provisioning:/etc/grafana/provisioning