-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
47 lines (47 loc) · 1.19 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
version: "3.8"
services:
mqtt:
container_name: mqtt
image: eclipse-mosquitto
restart: always
# do not expose ports unless you explicitly need to connect to the mqtt
# server from the outside of the docker compose network
# in this case since HA is in host mode, ports need to be exposed
ports:
- 1883:1883
- 9001:9001
volumes:
- ./data/mqtt:/mosquitto/config
- ./data/mqtt/log:/mosquitto/log
zigbee2mqtt:
container_name: zigbee2mqtt
image: koenkk/zigbee2mqtt
restart: always
depends_on:
- mqtt
volumes:
- ./data/zigbee2mqtt:/app/data
- /run/udev:/run/udev:ro
ports:
- 8080:8080
environment:
- TZ=Europe/Berlin
devices:
- /dev/ttyUSB0:/dev/ttyACM0
home-assistant:
container_name: home-assistant
image: homeassistant/home-assistant
restart: always
network_mode: host
# Needed for Bluetooth
privileged: true
depends_on:
- mqtt
# ports not necessary for host network mode
#ports:
# - "8123:8123"
volumes:
- ./data/home-assistant:/config
- "/etc/localtime:/etc/localtime:ro"
# Enable Bluetooth
- /run/dbus:/run/dbus:ro