docker-compose/homeassistant/docker-compose.yml

17 lines
507 B
YAML

version: '3'
services:
homeassistant:
container_name: homeassistant
image: "ghcr.io/home-assistant/home-assistant:stable"
volumes:
- ${HOMEASSISTANT_PATH}/config:/config
- /etc/localtime:/etc/localtime:ro
- /run/dbus:/run/dbus:ro
devices:
- '/dev/serial/by-id/usb-Nabu_Casa_SkyConnect_v1.0_7cf0ee91b8d8ed11a8216b6162c613ac-if00-port0:/dev/ttyUSB0'
restart: unless-stopped
privileged: true
network_mode: host
environment:
- TZ=Europe/Stockholm