-
Notifications
You must be signed in to change notification settings - Fork 88
Expand file tree
/
Copy pathpowerwall.yml
More file actions
142 lines (138 loc) · 4 KB
/
powerwall.yml
File metadata and controls
142 lines (138 loc) · 4 KB
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
services:
influxdb:
image: influxdb:1.8
container_name: influxdb
hostname: influxdb
restart: unless-stopped
ulimits:
nofile:
soft: 65536
hard: 65536
volumes:
- type: bind
source: ./influxdb.conf
target: /etc/influxdb/influxdb.conf
read_only: true
- type: bind
source: ./influxdb
target: /var/lib/influxdb
ports:
- "${INFLUXDB_PORTS:-8086:8086}"
env_file:
- influxdb.env
healthcheck:
test: curl -f http://influxdb:8086/health || exit 1
interval: 30s
timeout: 10s
retries: 3
start_period: 60s
pypowerwall:
image: jasonacox/pypowerwall:0.14.9t88
container_name: pypowerwall
hostname: pypowerwall
restart: unless-stopped
volumes:
- type: bind
source: .auth
target: /app/.auth
user: "${PWD_USER:-1000:1000}"
ports:
- "${PYPOWERWALL_PORTS:-8675:8675}"
environment:
- PW_AUTH_PATH=.auth
env_file:
- pypowerwall.env
healthcheck:
test: wget --spider -q http://pypowerwall:8675/api/site_info || exit 1
interval: 30s
timeout: 10s
retries: 3
start_period: 60s
telegraf:
image: telegraf:1.28.2
container_name: telegraf
hostname: telegraf
restart: unless-stopped
user: "${PWD_USER:-1000:1000}"
command: [
"telegraf",
"--config",
"/etc/telegraf/telegraf.conf",
"--config-directory",
"/etc/telegraf/telegraf.d"
]
volumes:
- type: bind
source: ./telegraf.conf
target: /etc/telegraf/telegraf.conf
read_only: true
- type: bind
source: ./telegraf.local
target: /etc/telegraf/telegraf.d/local.conf
read_only: true
- type: bind
source: ./VERSION
target: /etc/telegraf/VERSION
read_only: true
- type: bind
source: ./ver.sh
target: /etc/telegraf/ver.sh
read_only: true
depends_on:
- influxdb
- pypowerwall
healthcheck:
test: pgrep telegraf || exit 1
interval: 30s
timeout: 10s
retries: 3
start_period: 30s
grafana:
image: grafana/grafana:12.3.1-ubuntu
container_name: grafana
hostname: grafana
restart: unless-stopped
ulimits:
nofile:
soft: 65536
hard: 65536
user: "${PWD_USER:-1000:1000}"
volumes:
- type: bind
source: ./grafana
target: /var/lib/grafana
ports:
- "${GRAFANA_PORTS:-9000:9000}"
env_file:
- grafana.env
depends_on:
- influxdb
healthcheck:
test: curl -f http://grafana:9000/api/health || exit 1
interval: 30s
timeout: 10s
retries: 3
start_period: 60s
weather411:
image: jasonacox/weather411:0.2.3
container_name: weather411
hostname: weather411
restart: unless-stopped
user: "${PWD_USER:-1000:1000}"
volumes:
- type: bind
source: ./weather
target: /var/lib/weather
read_only: true
ports:
- "${WEATHER411_PORTS:-8676:8676}"
environment:
- WEATHERCONF=/var/lib/weather/weather411.conf
depends_on:
- influxdb
healthcheck:
test: wget --spider -q http://weather411:8676/stats || exit 1
interval: 30s
timeout: 10s
retries: 3
start_period: 60s