-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Running with Docker-compose #38
Comments
If you want to use the dashboard on k8s, it has to run inside the cluster, and locally you cannot run it with Docker since the container doesn't have access to your host machine. |
@yaron2 If everything else is running with docker-compose, how would I point the dashboard at my environment? also I'm wondering why does it need access to my host machine? |
If you are running Dapr instances locally without Docker, then a dashboard running in a container would need access to localhost to talk to the Dapr instances. The dashboard doesn't work in a Docker compose setting where containers are isolated (bridge network mode, without a Docker network). This is not related to the dashboard but more to the Docker network setup. It may be possible to set up with the correct Docker network setting, but this needs to be tried out. |
@willdavsmith @shalabhms can I show you what I'm doing and maybe we can figure out this scenario. If we can get it working, I think it would beneficial customers, especially if we can add some docs around it. |
@shalabhms @yaron2 any thoughts on this? It would be nice to show this off to folks when I do multi-container demos that aren't in kubernetes |
@artursouza - can you look at this? |
@cecilphillip I've made some changes to the dashboard code to allow to work with K8s from outside the cluster, as long as the K8s API is accessible. If the host can access the k8s cluster via kubectl, then it will also work with dashboard. You need to set the |
@cecilphillip Please, reopen if issue persists. |
@cecilphillip did you ever successfully get the Dapr dashboard working with docker compose? |
I'm confused. The ask is about using docker-compose so how does that relate to K8? 🤔 And more importantly, like ChristianWeyer said, how can we get the dashboard running via docker compose? |
@ChristianWeyer nah, I gave up on showing the Dashboard in docker-compose. |
I would also like this ability i.e. run the dashboard inside a docker compose network and have it report on dapr services also running inside the same docker network. I believe the reason it doesn't work is because the dashboard currently only supports two ways of enumerating the dapr services:
What I believe is needed here is a 3rd platform option for "docker-compose" that is able to enumerate dapr services on the same docker compose network. Alternatively it could accept additional configuration that declares where the dapr services reside on the compose network so it doesn't actually need to enumerate and instead is told where they are. |
Hi @artursouza - I've had a go at implementing this. Verified working locally with docker compose. |
This is being tracked in #172 |
I've built an image (
dapr_dashboard_cp
) using the instructions in the Readme and run a container image for the dashboard, but I am unable to see any components showing up with my docker-compose configuration. Is there something else that needs to be set?I can see calls being made to
http://localhost:8080/api/instances
andhttp://localhost:8080/api/controlplanestatus
but the payload only contains an empty JSON array.The text was updated successfully, but these errors were encountered: