Files
docker-compose/smart-home/docker-compose.yml

62 lines
1.9 KiB
YAML

services:
home-assistant:
image: ghcr.io/home-assistant/home-assistant:stable
container_name: home-assistant
privileged: true
network_mode: host
volumes:
- /mnt/user/appdata/home-assistant:/config
- /etc/localtime:/etc/localtime:ro
- /run/dbus:/run/dbus:ro
restart: unless-stopped
labels:
net.unraid.docker.icon: "https://cdn.jsdelivr.net/gh/selfhst/icons@main/png/home-assistant.png"
net.unraid.docker.webui: "https://home-assistant.homecube.org"
folder.view2: "Services"
# hass_otbr:
# container_name: hass_otbr
# privileged: true
# image: ghcr.io/ownbee/hass-otbr-docker
# restart: unless-stopped
# network_mode: host
# cap_add:
# - SYS_ADMIN
# - NET_ADMIN
# environment:
# DEVICE: "/dev/ttyUSB1"
# BACKBONE_IF: br0
# FLOW_CONTROL: 0
# FIREWALL: 1
# NAT64: 1
# BAUDRATE: 460800
# OTBR_REST_PORT: 8061
# OTBR_WEB_PORT: 8060
# AUTOFLASH_FIRMWARE: 0
# devices:
# - source: /dev/serial/by-id/usb-Espressif_USB_JTAG_serial_debug_unit_98:A3:16:8E:32:C0-if00
# target: /dev/ttyUSB1
# permissions: rwm
# volumes:
# - /mnt/user/appdata/hass_otbr:/var/lib/thread
# labels:
# folder.view2: "Services"
matter-server:
image: ghcr.io/matter-js/python-matter-server:stable
restart: unless-stopped
container_name: matter-server
# Required for mDNS to work correctly
network_mode: host
security_opt:
# Needed for Bluetooth via dbus
- apparmor:unconfined
volumes:
# Create an .env file that sets the USERDIR environment variable.
- /mnt/user/appdata/matter-server/data:/data/
# Required for Bluetooth via D-Bus
- /run/dbus:/run/dbus:ro
labels:
net.unraid.docker.icon: "https://raw.githubusercontent.com/homarr-labs/dashboard-icons/refs/heads/main/png/matter.png"
folder.view2: "Services"