-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yaml
49 lines (49 loc) · 1.45 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
version: "3.7"
services:
telegraf:
image: docker.io/telegraf:1.19
labels:
io.containers.autoupdate: image
container_name: telegraf
command:
- "bash"
- "-xe"
- "/tmp/entrypoint.sh"
restart: unless-stopped
environment:
- POWERWALL_PASS=${POWERWALL_PASS}
- POWERWALL_LOCATION=${POWERWALL_LOCATION}
volumes:
- ./telegraf/entrypoint.sh:/tmp/entrypoint.sh:z
- ./telegraf/etc:/etc/telegraf:z
- ./powerwall_auth:/tmp/cookie:z
extra_hosts:
- powerwall:${POWERWALL_IP}
influxdb:
image: docker.io/influxdb:1.8
labels:
io.containers.autoupdate: image
container_name: influxdb
restart: unless-stopped
volumes:
- ./influxdb/etc:/etc/influxdb
- /srv/powerwall/influxdb:/var/lib/influxdb:z
grafana:
image: docker.io/grafana/grafana:7.5.10
labels:
io.containers.autoupdate: image
container_name: grafana
ports:
- 3000:3000
restart: unless-stopped
environment:
- GF_SECURITY_ADMIN_USER=powerwall
- GF_SECURITY_ADMIN_PASSWORD=powerwall
- GF_INSTALL_PLUGINS=grafana-piechart-panel
- POWERWALL_LOCATION=${POWERWALL_LOCATION}
- VIRTUAL_HOST=${VIRTUAL_HOST}
- VIRTUAL_PORT=${VIRTUAL_PORT}
volumes:
- ./grafana/datasources:/etc/grafana/provisioning/datasources:z
- ./grafana/dashboards:/etc/grafana/provisioning/dashboards:z
- ./grafana/baked:/var/lib/grafana/dashboards:z