-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathdocker-compose.yaml
57 lines (52 loc) · 1.2 KB
/
docker-compose.yaml
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
version: "2.2"
services:
telegraf-kostal-plenticore:
build:
context: telegraf-kostal-plenticore
dockerfile: Dockerfile
depends_on:
- influxdb
extra_hosts:
- "plenticore.local:10.7.77.10"
restart: always
mem_limit: 100M
# chronograf:
# image: chronograf
# links:
# - influxdb
# ports:
# - 8888:8888
influxdb:
image: influxdb:1.7
environment:
- INFLUXDB_REPORTING_DISABLED=true
- INFLUXDB_HTTP_LOG_ENABLED=false
- INFLUXDB_DATA_QUERY_LOG_ENABLED=false
- INFLUXDB_ADMIN_PASSWORD=secret
- INFLUXDB_DB=telegraf
volumes:
- "influx-data:/var/lib/influxdb:rw"
- "influx-config:/etc/influxdb:rw"
restart: always
mem_limit: 500M
grafana:
build:
context: grafana
dockerfile: Dockerfile
ports:
- 3001:3000
depends_on:
- influxdb
volumes:
- "grafana:/var/lib/grafana:rw"
environment:
- GF_SECURITY_ADMIN_PASSWORD=secret
- GF_AUTH_ANONYMOUS_ENABLED=true
- GF_INSTALL_PLUGINS=grafana-piechart-panel
- INFLUXDB_ADMIN_PASSWORD=secret
restart: always
mem_limit: 500M
volumes:
grafana:
influx-data:
influx-config: