jimtse
网站页面
sudo curl -sSL https://get.docker.com | sh
docker pull homeassistant/home-assistant
docker run -d --name="home-assistants" -v /Users/tse/HomeAssistant:/config -p 8123:8123 homeassistant/home-assistant
version: '3'
services:
homeassistant:
container_name: homeassistant
image: "ghcr.io/home-assistant/home-assistant:stable"
volumes:
- /home-assistant:/config #home-assistant为docker-compose.yml文件所在目录
- /etc/localtime:/etc/localtime:ro
restart: unless-stopped
privileged: true
network_mode: host
ports:
- 8123:8123
docker compose up -d