-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
66 lines (66 loc) · 1.32 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
version: '3'
volumes:
influxdb-storage:
grafana-storage:
services:
influxdb:
image: influxdb:1.7
restart: always
ports:
- "8086:8086"
volumes:
- 'influxdb-storage:/var/lib/influxdb'
logging:
driver: "json-file"
options:
max-size: "50m"
max-file: "4"
grafana:
image: grafana/grafana:5.4.3
restart: always
ports:
- "3000:3000"
volumes:
- 'grafana-storage:/var/lib/grafana'
- ./grafana/provisioning/:/etc/grafana/provisioning/
env_file:
- ./grafana/config.monitoring
influx_to_csv:
build: ./influxdb
restart: always
volumes:
- ./data/:/var/lib/csv/
environment:
- INFLUX_HOST=influxdb
- CSV_FOLDER_PATH=/var/lib/csv/
depends_on:
- influxdb
- grafana
cpu_load:
build: ./sensors/cpu_load
restart: always
environment:
- INFLUX_HOST=influxdb
depends_on:
- influxdb
- grafana
bme280:
build: ./sensors/bme280
devices:
- "/dev/i2c-1"
restart: always
environment:
- INFLUX_HOST=influxdb
depends_on:
- influxdb
- grafana
ads1115:
build: ./sensors/ads1115
devices:
- "/dev/i2c-1"
restart: always
environment:
- INFLUX_HOST=influxdb
depends_on:
- influxdb
- grafana