Cannot access Web UI - Docker-Compose

Its running in host networking mode so will inherit the IP address of the host it is running on, and won’t show anything under IP or ports in Portainer. You won’t specify ports with host networking mode or it creates errors like what you saw.

Your compose is a little different from mine - I use an environment variable for the timezone and don’t mount the /etc/localtime as a volume. Here’s the compose I use- I don’t use :stable and spell out the version number to pull, but you can do either :stable or :2022.6. I know Home Assistant documentation recommends GHCR but I still just use the docker hub path. I also just add the below compose as a “stack” in portainer per these instructions

version: '3.3'
services:
    home-assistant:
        container_name: homeassistant
        volumes:
            - '/home/mwav3/homeassistant:/config'
        environment:
            - TZ=America/New_York
        restart: always
        network_mode: host
        image: 'homeassistant/home-assistant:2022.6'

If that still doesn’t work, check the logs in the container to see if Home Assistant is even coming up and loading. Try http://192.168.0.yourip:8123 to access the Home Assistant instance as well, although localhost:8123 should work if you’re using the browser on the same host it is installed on.

Privileged mode is also not necessary if you are not mapping USB sticks to the Home Assistant instance.