#Beginner running docker compose

1 messages · Page 1 of 1 (latest)

fast furnace
#

Hi all, just discovered home assistant and wanting to run in on laptop (macos if it matters) to see how it looks. Hope that someone can help me as I can't access the dashboard.

My docker compose

➜  ha-compose cat docker-compose.yml 
services:
  homeassistant:
    container_name: homeassistant
    image: "ghcr.io/home-assistant/home-assistant:stable"
    volumes:
      - ~/ha:/config
      - /etc/localtime:/etc/localtime:ro
      - /run/dbus:/run/dbus:ro
    restart: unless-stopped
    privileged: true
    network_mode: host

Running it with:

➜  ha-compose sudo docker compose up
Password:
[+] Running 1/1
 ✔ Container homeassistant  Recreated                                                                                                                                     0.1s 
Attaching to homeassistant
homeassistant  | s6-rc: info: service s6rc-oneshot-runner: starting
homeassistant  | s6-rc: info: service s6rc-oneshot-runner successfully started
homeassistant  | s6-rc: info: service fix-attrs: starting
homeassistant  | s6-rc: info: service fix-attrs successfully started
homeassistant  | s6-rc: info: service legacy-cont-init: starting
homeassistant  | s6-rc: info: service legacy-cont-init successfully started
homeassistant  | s6-rc: info: service legacy-services: starting
homeassistant  | services-up: info: copying legacy longrun home-assistant (no readiness notification)
homeassistant  | s6-rc: info: service legacy-services successfully started

It looks like it started but it doesn't serve anything on localhost:8123 or 192.168.1.4:8123

Thanks in advance!

slate spruce
#

I don't suggest using a shell shortcut like ~/ha. Instead use an absolute or relative path like ./ha

#

Non-Linux docker didn't used to support host networking, either

#

You're better off running HAOS in a VM

fast furnace
fast furnace
fast furnace
#

I have run it inside VirtualBox and it looks like it is started ( I have access to ha commands).

I have pinged the port and ip and it is open:

➜  ~ nc -vz 192.168.1.15 8123
Connection to 192.168.1.15 port 8123 [tcp/*] succeeded!

But when i try to access it over chrome

This site can’t be reached
http://192.168.1.15:8123/ is unreachable.
ERR_ADDRESS_UNREACHABLE

Do you maybe have a hint what I am missing?

#

Never mind, for some reason it works on firefox