Dash. widget doesnt work when dash. is in docker or i am doing something wrong
.
29 Replies
i have dash. like this in my docker compose where i also have homarr:
setting it like this doesnt connect
![No description](https://cdn.answeroverflow.com/1157951962558517360/image.png)
setting it internally, does not embed the stats, cause that dns record for dash doesnt exist outside of docker network.
![No description](https://cdn.answeroverflow.com/1157952079655079967/image.png)
![No description](https://cdn.answeroverflow.com/1157956917415649380/image.png)
![No description](https://cdn.answeroverflow.com/1157957222412865608/image.png)
You should set it to the absolute IP address. Both Homarr and your browser must be able to connect
Your browser can't connect to localhost nor the internal docker hostname
why?
port is exposed
Because localhost means the local host. The client tries to connect to itself. Unless your running Homarr and Dash. on the same machine as your browser is, this won't work
Then just use the IP and port instead of localhost or the internal Docker hostname
yes, i am doing exactly that right now, but i will use a raspi later
![No description](https://cdn.answeroverflow.com/1157966736356818954/image.png)
![No description](https://cdn.answeroverflow.com/1157966784712941668/image.png)
it works with internal port(the connect), but then fails to embed
so it seems like, the connection is done on the backend and not in browser, and embed is done in browser only
which is very bad
which means its impossible to get this working
it would only work if i set a custom dash dns record
trying that out
No, it would also work if you used the IPv4.
But a custom DNS record will work as well
so
i was right
only works with dns
because
docker compose assigns a whole new network
and on that network
my ip is a lot different
and yes, ipv4 did not work
It should. Did you check the log?