docker-compose搭建homeassistant+hacs

version: '3'
services:
 homeassistant:
   image: homeassistant/home-assistant:stable
   container_name: home-assistant
   privileged: true
   environment:
     TZ: Asia/Shanghai
#   restart: always
   volumes:
    - ./config:/config
   ports:
      - "8123:8123"

 兼容的hacs

https://download.fastgit.org/hacs/integration/releases/download/1.22.0/hacs.zip

 安装hacs

https://www.cnblogs.com/isit/p/17043428.html

教程

dockerHomeassistant_docker homeassistant_KYSDFH的博客-CSDN博客

docker run -d --name hassio_supervisor --privileged \
-v /var/run/docker.sock:/var/run/docker.sock \
-v /var/run/dbus:/var/run/dbus \
-v /opt/docker/hassio:/data \
-e SUPERVISOR_SHARE="/opt/docker/hassio" \
-e SUPERVISOR_NAME=hassio_supervisor \
-e HOMEASSISTANT_REPOSITORY="homeassistant/qemux86-64-homeassistant" \
--restart unless-stopped homeassistant/amd64-hassio-supervisor:2021.01.8

猜你喜欢

转载自blog.csdn.net/weixin_45623983/article/details/129428950