-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
93 lines (90 loc) · 2.08 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
version: '3'
services:
mosquitto:
container_name: mosquitto
image: eclipse-mosquitto:latest
restart: always
deploy:
resources:
limits:
memory: 125M
volumes:
- ./data-mosquitto/config/mosquitto.conf:/mosquitto/config/mosquitto.conf
- ./data-mosquitto/data:/mosquitto/data
- ./data-mosquitto/log:/mosquitto/log
zigbee2mqtt:
container_name: zigbee2mqtt
depends_on:
- mosquitto
image: koenkk/zigbee2mqtt
volumes:
- ./data-zigbee2mqtt:/app/data
- /run/udev:/run/udev:ro
devices:
- /dev/ttyACM0:/dev/ttyACM0
deploy:
resources:
limits:
memory: 100M
restart: always
privileged: true
environment:
- TZ=Europe/Prague
postgres:
container_name: postgres-ha
image: postgres
volumes:
- ./data-postgres/:/var/lib/postgresql/data/
deploy:
resources:
limits:
memory: 250M
env_file:
- .env
homeassistant:
container_name: home-assistant
depends_on:
- mosquitto
- postgres
image: homeassistant/home-assistant:stable
volumes:
- ./data-ha:/config
env_file:
- .env
environment:
- TZ=Europe/Prague
deploy:
resources:
limits:
memory: 250M
restart: always
ports:
- 8123:8123
zigbee2mqttAssistant:
image: carldebilly/zigbee2mqttassistant
container_name: zigbee2mqttAssistant
environment:
- Z2MA_SETTINGS__MQTTSERVER=mosquitto
# Set to your TimeZone when using on Linux https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
# Won't work if you're using the Windows version of the container
- TZ=Europe/Copenhagen
ports:
- 8880:80
restart: always
node-red:
container_name: node-red
depends_on:
- mosquitto
image: nodered/node-red:latest
environment:
- TZ=Europe/Amsterdam
ports:
- "1880:1880"
volumes:
- ./data-nodered:/data
deploy:
resources:
limits:
memory: 250M
restart: always
user: root:root