-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
238 lines (225 loc) · 5.77 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
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
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
version: '3.7'
services:
mosquitto:
image: eclipse-mosquitto
container_name: mosquitto
restart: always
entrypoint: /kota-entrypoint.sh
ports:
- "8883:8883"
- "9091:9091"
volumes:
- ./mosquitto/kota-entrypoint.sh:/kota-entrypoint.sh:ro
- ./mosquitto/config:/mosquitto/config
- ./mosquitto/data:/mosquitto/data
- ./mosquitto/log:/mosquitto/log
- ./certificates:/mosquitto/config/certs:ro
- /etc/localtime:/etc/localtime:ro
secrets:
- MQTT_PASSWORD
user: "1000:1000"
zigbee2mqtt:
image: koenkk/zigbee2mqtt
container_name: zigbee2mqtt
restart: always
entrypoint: /kota-entrypoint.sh
volumes:
- ./zigbee2mqtt/kota-entrypoint.sh:/kota-entrypoint.sh:ro
- ./zigbee2mqtt/data:/app/data
secrets:
- MQTT_PASSWORD
environment:
- TZ=Europe/Helsinki
devices:
- /dev/ttyACM0:/dev/ttyACM0
depends_on:
- mosquitto
# /dev/ttyACM0 laitteen käyttö vaatii dialout ryhmän
user: "1000:dialout"
zigbee2mqttassistant:
image: carldebilly/zigbee2mqttassistant
container_name: zigbee2mqttassistant
restart: always
entrypoint: /kota-entrypoint.sh
volumes:
- ./zigbee2mqttassistant/kota-entrypoint.sh:/kota-entrypoint.sh:ro
secrets:
- MQTT_PASSWORD
environment:
- Z2MA_SETTINGS__MQTTSERVER=mosquitto
- Z2MA_SETTINGS__MQTTUSERNAME=koti
- TZ=Europe/Helsinki
ports:
- 8880:80
depends_on:
- mosquitto
user: "1000:1000"
node-red:
image: nodered/node-red
container_name: node-red
restart: always
volumes:
- ./node-red/data:/data
- ./certificates:/etc/ssl/private:ro
- /etc/localtime:/etc/localtime:ro
- ~/.ssh/id_node_red:/id_node_red:ro
secrets:
- MQTT_PASSWORD
ports:
- "1880:1880"
depends_on:
- mosquitto
user: "1000:1000"
bt-mqtt-gateway:
image: zewelor/bt-mqtt-gateway
container_name: bt-mqtt-gateway
restart: always
entrypoint: /kota-entrypoint.sh
volumes:
- ./bt-mqtt-gateway/kota-entrypoint.sh:/kota-entrypoint.sh:ro
- ./bt-mqtt-gateway/config.yaml.in:/config.yaml.in:ro
- ./certificates:/certificates:ro
secrets:
- MQTT_PASSWORD
# These capabilities are needed for Bluetooth
cap_add:
- NET_ADMIN
- SYS_ADMIN
- SYS_RESOURCE
# The Docker host should have working Bluetooth
network_mode: host
depends_on:
- mosquitto
#environment:
# - DEBUG=true
influxdb:
image: influxdb:1.8
container_name: influxdb
restart: always
volumes:
- ./influxdb/var:/var/lib/influxdb
ports:
- "8086:8086"
user: "1000:1000"
grafana:
image: grafana/grafana
container_name: grafana
restart: always
volumes:
- ./grafana/etc/provisioning:/etc/grafana/provisioning
- ./grafana/lib:/var/lib/grafana
- ./grafana/dashboards:/var/lib/grafana/dashboards
ports:
- "3000:3000"
depends_on:
- influxdb
user: "1000:1000"
telegraf:
image: telegraf
container_name: telegraf
restart: always
entrypoint: /kota-entrypoint.sh
secrets:
- MQTT_PASSWORD
volumes:
- ./telegraf/kota-entrypoint.sh:/kota-entrypoint.sh:ro
- ./telegraf/config:/etc/telegraf
depends_on:
- influxdb
- mosquitto
user: "1000:1000"
homeassistant:
container_name: homeassistant
image: homeassistant/home-assistant:stable
restart: always
environment:
- PUID=1000
- PGID=1000
- TZ=Europe/Helsinki
volumes:
- ./homeassistant/config:/config
- ./homeassistant/docker-venv/run:/etc/services.d/home-assistant/run
- ./certificates:/etc/ssl/private:ro
- /etc/localtime:/etc/localtime:ro
secrets:
- MQTT_PASSWORD
depends_on:
- mosquitto
ports:
- "8123:8123"
heimdall:
image: linuxserver/heimdall
container_name: heimdall
restart: always
environment:
- PUID=1000
- PGID=1000
- TZ=Europe/Helsinki
volumes:
- ./heimdall:/config
ports:
- "443:443"
harmony-api:
image: chrisns/harmony-api:sha-ac853377fd9ef2d6baf0e0361da6ac47550967e7
container_name: harmony-api
restart: always
entrypoint: /kota-entrypoint.sh
volumes:
- ./harmony-api/config.js:/config.js:ro
- ./harmony-api/kota-entrypoint.sh:/kota-entrypoint.sh:ro
secrets:
- MQTT_PASSWORD
ports:
- "8282:8282"
depends_on:
- mosquitto
user: "1000:1000"
appdaemon:
image: acockburn/appdaemon:latest
container_name: appdaemon
restart: always
entrypoint: /kota-entrypoint.sh
volumes:
- ./appdaemon/conf:/conf
- ./appdaemon/kota-entrypoint.sh:/kota-entrypoint.sh:ro
secrets:
- ENTSOE_API_TOKEN
- MQTT_PASSWORD
mqttwarn:
image: ghcr.io/jpmens/mqttwarn-full:latest
container_name: mqttwarn
restart: always
entrypoint: /kota-entrypoint.sh
volumes:
- ./mqttwarn/config:/etc/mqttwarn
- ./mqttwarn/lisaa-salaisuudet.py:/lisaa-salaisuudet.py:ro
- ./mqttwarn/kota-entrypoint.sh:/kota-entrypoint.sh:ro
- /etc/localtime:/etc/localtime:ro
secrets:
- MQTT_PASSWORD
- SMTP_USERNAME
- SMTP_PASSWORD
- SMTP_FROM
- SMTP_TO
- TELEGRAM_CHAT_ID
- TELEGRAM_TOKEN
depends_on:
- mosquitto
user: "1000:1000"
secrets:
ENTSOE_API_TOKEN:
file: ./secrets/ENTSOE_API_TOKEN
MQTT_PASSWORD:
file: ./secrets/MQTT_PASSWORD
SMTP_USERNAME:
file: ./secrets/SMTP_USERNAME
SMTP_PASSWORD:
file: ./secrets/SMTP_PASSWORD
SMTP_FROM:
file: ./secrets/SMTP_FROM
SMTP_TO:
file: ./secrets/SMTP_TO
TELEGRAM_CHAT_ID:
file: ./secrets/TELEGRAM_CHAT_ID
TELEGRAM_TOKEN:
file: ./secrets/TELEGRAM_TOKEN