H
Homarr12mo ago
csd4ni3l

Dash. widget doesnt work when dash. is in docker or i am doing something wrong

.
29 Replies
csd4ni3l
csd4ni3l12mo ago
i have dash. like this in my docker compose where i also have homarr:
dash:
image: mauricenino/dashdot:latest
restart: unless-stopped
privileged: true
ports:
- '6734:3001'
volumes:
- /:/mnt/host:ro
dash:
image: mauricenino/dashdot:latest
restart: unless-stopped
privileged: true
ports:
- '6734:3001'
volumes:
- /:/mnt/host:ro
csd4ni3l
csd4ni3l12mo ago
setting it like this doesnt connect
No description
csd4ni3l
csd4ni3l12mo ago
setting it internally, does not embed the stats, cause that dns record for dash doesnt exist outside of docker network.
No description
csd4ni3l
csd4ni3l12mo ago
No description
csd4ni3l
csd4ni3l12mo ago
No description
Manicraft1001
Manicraft100112mo ago
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
csd4ni3l
csd4ni3l12mo ago
why? port is exposed
dash:
image: mauricenino/dashdot:latest
restart: unless-stopped
privileged: true
ports:
- '6734:3001'
environment:
- DASHDOT_ENABLE_CPU_TEMPS=true
- DASHDOT_ALWAYS_SHOW_PERCENTAGES=true
- DASHDOT_CPU_POLL_INTERVAL=500
- DASHDOT_RAM_POLL_INTERVAL=500
- DASHDOT_NETWORK_POLL_INTERVAL=500
- DASHDOT_SPEED_TEST_INTERVAL=60
volumes:
- /:/mnt/host:ro
dash:
image: mauricenino/dashdot:latest
restart: unless-stopped
privileged: true
ports:
- '6734:3001'
environment:
- DASHDOT_ENABLE_CPU_TEMPS=true
- DASHDOT_ALWAYS_SHOW_PERCENTAGES=true
- DASHDOT_CPU_POLL_INTERVAL=500
- DASHDOT_RAM_POLL_INTERVAL=500
- DASHDOT_NETWORK_POLL_INTERVAL=500
- DASHDOT_SPEED_TEST_INTERVAL=60
volumes:
- /:/mnt/host:ro
Manicraft1001
Manicraft100112mo ago
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
csd4ni3l
csd4ni3l12mo ago
yes, i am doing exactly that right now, but i will use a raspi later
csd4ni3l
csd4ni3l12mo ago
No description
csd4ni3l
csd4ni3l12mo ago
No description
csd4ni3l
csd4ni3l12mo ago
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
Manicraft1001
Manicraft100112mo ago
No, it would also work if you used the IPv4. But a custom DNS record will work as well
csd4ni3l
csd4ni3l12mo ago
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
Manicraft1001
Manicraft100112mo ago
It should. Did you check the log?
Want results from more Discord servers?
Add your server