Home Assistant on Docker

1. add the firewall rule to access Home Assistant instance from the outside:

firewall-cmd --add-port=8123/tcp
firewall-cmd --add-port=8123/tcp --permanent

2. download image from repository

docker pull homeassistant/home-assistant

3. create the container where config dir is mapped:
– /storage/homeassistant – this is the path for the whole Home Assistant config dir on the local disc

docker run --name homeassistant --restart=always \
    -p 8123:8123 \
    -v /storage/homeassistant:/config:Z -v /etc/localtime:/etc/localtime:ro \
    -d homeassistant/home-assistant

Leave a Reply

Your email address will not be published. Required fields are marked *