-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose-homeassistant.yaml
30 lines (28 loc) · 1.17 KB
/
docker-compose-homeassistant.yaml
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
# ||--------------------------------------------------------------------------------||
# || Home Assistant ||
# ||--------------------------------------------------------------------------------||
version: "3.9"
services:
homeassistant:
container_name: homeassistant
hostname: homeassistant
image: "ghcr.io/home-assistant/home-assistant:stable"
environment:
- PGID=${HOMEASSISTANT_PGID}
- PUID=${HOMEASSISTANT_PUID}
- TZ=${TZ}
- UMASK=${UMASK}
privileged: true
network_mode: host
devices:
- /dev/ttyUSB0:/dev/ttyUSB0
- /dev/ttyUSB1:/dev/ttyUSB1
volumes:
- /etc/localtime:/etc/localtime:ro
# TODO: THIS IS BRAKING BLUETOOTH SUPPORT (RPI4 - DO WE EVEN NEED IT?)
# - /run/dbus:/run/dbus:ro
- ${HOMEASSISTANT_DATA_DIR_1_LOCAL}:${HOMEASSISTANT_DATA_DIR_1_RELATIVE}
- ${HOMEASSISTANT_DATA_DIR_2_LOCAL}:${HOMEASSISTANT_DATA_DIR_2_RELATIVE}
- ${HOMEASSISTANT_DATA_DIR_3_LOCAL}:${HOMEASSISTANT_DATA_DIR_3_RELATIVE}
- ${HOMEASSISTANT_CONFIG_BASE_DIR}/homeassistant:/config
restart: unless-stopped