Last active
October 10, 2023 12:59
-
-
Save ryanbarrett/46b8e136b9da9e4559d9ad08d217ff6c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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