Skip to content

Instantly share code, notes, and snippets.

@ryanbarrett
Last active October 10, 2023 12:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ryanbarrett/46b8e136b9da9e4559d9ad08d217ff6c to your computer and use it in GitHub Desktop.
Save ryanbarrett/46b8e136b9da9e4559d9ad08d217ff6c to your computer and use it in GitHub Desktop.
# mkdir -p ${USERDIR:-$HOME}/docker/homeassistant/config
# mkdir -p ${USERDIR:-$HOME}/docker/matter-server/data
# docker pull ghcr.io/home-assistant/home-assistant:stable && docker pull ghcr.io/home-assistant-libs/python-matter-server:stable && docker-compose down && docker-compose up -d --force-recreate
version: '3'
services:
homeassistant:
container_name: homeassistant
image: "ghcr.io/home-assistant/home-assistant:stable"
volumes:
- ${USERDIR:-$HOME}/docker/homeassistant/config:/config
- /etc/localtime:/etc/localtime:ro
restart: unless-stopped
privileged: true
network_mode: host
matter-server:
image: ghcr.io/home-assistant-libs/python-matter-server:stable
container_name: matter-server
restart: unless-stopped
# 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.
- ${USERDIR:-$HOME}/docker/matter-server/data:/data/
- /run/dbus:/run/dbus:ro
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment