Home Assistant is an open-source home automation platform that works well on a Linux server or HomeLab. This article adapts the Docker-based setup and stores the application configuration in a dedicated directory.
Source reference: i12bretro – Running Home Assistant in Docker . The original video belongs to i12bretro on YouTube .

Install Docker on Linux
On the Linux host, run the following commands to install Docker:
| |
Run the Home Assistant container
- Create a directory for the configuration:
| |
- Run the container. Change
TZto the actual local timezone if needed:
| |
- Check the container with
docker psand wait for the first initialization. - Open
http://DNSorIP:8123/. - Create the administrator Name, Username, and Password.
- Name the installation, for example
Home. - Click Detect to set the location.
- Verify the Unit System and Currency, then click Next.
- Select any anonymous data to share with the Home Assistant development team.
- Click Finish to open the main interface.
Note:
--network=hostgives Home Assistant direct access to the host network namespace, which can help with device discovery but also increases the container's network scope. Use it only on a host you control and protect the Web UI with a trusted network or an appropriate reverse proxy.
Source and video
- Original tutorial: i12bretro 0672
- Original video: Running Home Assistant in Docker
- Home Assistant: home-assistant.io
- Container guide: Home Assistant Container


Góp Ý / Bình Luận / Đánh giá