-
Notifications
You must be signed in to change notification settings - Fork 29
/
powerwall.yml
69 lines (64 loc) · 2.39 KB
/
powerwall.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
67
68
version: "3.5"
services:
influxdb:
image: influxdb:1.7
container_name: influxdb
hostname: influxdb
restart: always
volumes:
- type: bind
source: ./influxdb.conf
target: /etc/influxdb/influxdb.conf
read_only: true
- type: bind
source: ./influxdb
target: /var/lib/influxdb
ports:
- target: 8086
published: 8086
mode: host
cookieproxy:
image: pridkett/cookieproxy:0.1.0
container_name: cookieproxy
hostname: cookieproxy
restart: always
command: ["/bin/sh", "-c", '/go/bin/cookieproxy -request "{\"url\": \"https://powerwall/api/login/Basic\", \"headers\": {\"Content-Type\": \"application/json\"}, \"body\": \"{\\\"username\\\":\\\"customer\\\",\\\"password\\\":\\\"$$POWERWALL_PASSWORD\\\", \\\"force_sm_off\\\":false}\", \"method\": \"POST\"}"']
extra_hosts:
- "powerwall: 192.168.91.1"
env_file:
- .env.cookieproxy
telegraf:
image: telegraf:1.12
container_name: telegraf
hostname: telegraf
restart: always
volumes:
- type: bind
source: ./telegraf.conf
target: /etc/telegraf/telegraf.conf
read_only: true
depends_on:
- influxdb
- cookieproxy
grafana:
image: grafana/grafana:6.5.1-ubuntu
container_name: grafana
hostname: grafana
restart: always
user: "1000:1000"
volumes:
- type: bind
source: ./grafana
target: /var/lib/grafana
ports:
- target: 9000
published: 9000
mode: host
environment:
GF_PATHS_PROVISIONING: /var/lib/grafana/provisions
GF_SERVER_HTTP_PORT: 9000
GF_INSTALL_PLUGINS: "grafana-piechart-panel, natel-plotly-panel, blackmirror1-singlestat-math-panel, btplc-trend-box-panel, marcuscalidus-svg-panel, michaeldmoore-multistat-panel, yesoreyeram-boomtable-panel, ryantxu-ajax-panel, grafana-influxdb-flux-datasource, fetzerch-sunandmoon-datasource, andig-darksky-datasource, simpod-json-datasource"
GF_ANALYTICS_CHECK_FOR_UPDATES: "false"
GF_ANALYTICS_REPORTING_ENABLED: "false"
depends_on:
- influxdb