一、docker部署
sudo docker run -d --name="homeassistant-v1" -v /docker/home-assistant/config:/config -p 8123:8123 homeassistant/home-assistant:latest
二、docker-compose部署
version: '3' services: homeassistant: hostname: homeassistant image: homeassistant/home-assistant:latest container_name: homeassistant # 指定容器名称,如果不设置此参数,则由系统自动生成 #restart: always # 设置容器自启模式 volumes: - "/docker/home-assistant/config:/config" # network_mode: "host" ports: - "8123:8123"
参考:
【自用】云服务器 使用 docker 搭建 HomeAssistant + MQTT 物联网平台_mqtt物联网平台_MicroLindb的博客-CSDN博客
标签:HomeAssistant,部署,assistant,8123,home,docker,config,homeassistant From: https://www.cnblogs.com/raorao1994/p/17861313.html