Issue with HA installation on docker

Hello,
I’m having a problem installing HomeAssistant.
I chose to install it on my NAS MyCloudEx2Ultra on which I installed docker (I did not want to buy additional hardware). On portainer, I created a stack with the following code:

version: '3.8
services:
  homeassistant:
    image: homeassistant/home-assistant:stable
    container_name: homeassistant
    environment:
      - TZ=Europe/Paris
    ports:
      - 8123:8123
    volumes:
      - /mnt/ha/config:/config
    restart: always

deployment goes smoothly and the container is in running mode, but when I try to access HA via the address http://192.168.1.35:8123 it doesn’t work. Any idea where the problem might be?

Thanks in advance

The docs are very clear that you need to use host networking, not port mapping.

Try that, and then check the logs for HA.

1 Like

Hello Tinkerer,

I tried this way too:

version: '3.8'
services:
  homeassistant:
    image: homeassistant/home-assistant:stable
    container_name: homeassistant
    environment:
      - TZ=Europe/Paris
    network_mode: host
    volumes:
      - /mnt/ha/config:/config
    restart: always

But still it is not reachable.

Concerning the logs for HA, there is none:

Not sure if i have to check the logs there, im a beginner.

Thanks for your help

I (think) you are using the wrong image. Try this:

image: ghcr.io/home-assistant/home-assistant:stable

You also might find

restart: unless-stopped

more useful than always

2 Likes

Check /mnt/ha/config for a log or other files.

1 Like

Nah, that image is fine, it’s just on Docker Hub rather than Google.

Hello jchh,

Thanks for your answer. I already tried with this image and i also tried to set restart on unless-stopped but i got the same issue. To be honest i spent two days on it, trying a lot of different options but for some reason it still doesn’t work… :sob:

No log or file in this directory once the container is deployed:

Then the container isn’t even starting.

Oh i see… I thought it was since i got the running statut on portainer:

Any idea what could block? Do you think it could come from the rights on the directory?

Thanks

Could be rights, but HA runs as root so that shouldn’t be it.

Sadly Portainer makes debugging stuff hard. Hopefully somebody who deals with it will be able to help you - I personally dislike it and just use docker compose for everything.

Anyway thanks a lot for your help. Thanks to you, some of the points I had doubts about have been clarified.

I used to use it myself, but I could have sworn I saw a release note that advised changing it.

1 Like

You did - 2023.7.x

2 Likes

Update: My container is not really running, it keeps on restarting:

thanks - I’m not going mad…

1 Like

I would delete container and fully and start over. I cannot remember if need to specifically use arm image but is your system arm?

restarting may be because of:

restart: always

Im sorry but i don’t know what is an arm image or if my system is arm. I’m trying to deploy on my Nas which is a WD MyCloudEx2Ultra.
Thanks

Yeah i already set the option on “restart: unless-stopped” but it keeps restarting.
Thanks