MirrorNest
← Все руководства

Home Assistant (Docker Container)

The Container installation method for Home Assistant — running just Home Assistant Core as a Docker container on an existing Linux server, alongside other services, instead of dedicating a whole machine to Home Assistant OS.

Система: Any Docker hosthome-automationsmart-homeDockerОфициальный сайт ↗Официальная документация ↗
Это руководство составлено на основе официальной документации Home Assistant (Docker Container), ссылка на которую есть выше — всегда сверяйте точные названия пакетов/версий там перед запуском этих команд на рабочем сервере, так как версии дистрибутива и проекта со временем меняются.
  1. 1Run the official container

    Host networking is recommended so Home Assistant can auto-discover devices on your local network (mDNS/SSDP) the same way it would on bare metal.

    docker run -d \ --name homeassistant \ --privileged \ --restart unless-stopped \ -e TZ=Etc/UTC \ -v ./homeassistant/config:/config \ --network host \ ghcr.io/home-assistant/home-assistant:stable
  2. 2Complete the onboarding wizard

    Home Assistant listens on port 8123 by default; the first visit walks through creating an admin account and naming your home.

    http://your-server-ip:8123
  3. 3Add integrations

    Settings > Devices & Services > Add Integration connects Home Assistant to your actual smart-home ecosystems (Zigbee/Z-Wave hubs, Google/Amazon accounts, individual device brands).

    Unlike Home Assistant OS, the Container method doesn't include the Supervisor, so you can't install HA Add-ons (like the Zigbee2MQTT or Mosquitto add-ons) through the HA UI -- run those as separate containers instead.