Skip to content
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

Dashboard running inside Docker-compose #172

Open
mexanichp opened this issue Sep 24, 2021 · 8 comments
Open

Dashboard running inside Docker-compose #172

mexanichp opened this issue Sep 24, 2021 · 8 comments
Labels
enhancement New feature or request

Comments

@mexanichp
Copy link

Hey,

I'm setting up a local environment with docker-compose.yaml following this guide and I'm wondering is it possible to include the dashboard in the compose configuration as well? What I've tried so far:

## ... several services with dapr sidecars and custom-network and components volumes

placement:
  image: "daprio/dapr"
  command: ["./placement", "-port", "50006"]
  ports:
    - "50006:50006"
  networks:
    - custom-network

dapr-dashboard:
  image: "daprio/dashboard"
  ports:
    - "8888:8080"
  networks:
    - custom-network

networks:
  custom-network:

The configuration itself works fine - I was able to invoke one service from another via dapr service invocation but dashboard doesn't recognize dapr sidecar containers, components:
image

I'm wondering is there any way to somehow point Dashboard to the app-ids of services or any other way to make it work?

Thanks!

@guangdashao
Copy link

dashboard can't get applications when running in standalone with docker

// getStandaloneInstances returns the Dapr instances running in the standalone environment

import (
    ......
    "github.com/dapr/cli/pkg/standalone"
        ......
)
......
func (i *instances) getStandaloneInstances(scope string) []Instance {
    list := []Instance{}
    output, err := standalone.List()

......

standalone.List() import from dapr cli "github.com/dapr/cli/pkg/standalone"

dapr cli project file: /pkg/standalone/list.go
when list all dapr applications
frist: filter sidecar process

 // Populates the map if all data is available for the sidecar.
for _, proc := range processes {
	executable := strings.ToLower(proc.Executable())
	if (executable == "daprd") || (executable == "daprd.exe") {
		procDetails, err := process.NewProcess(int32(proc.Pid()))
		if err != nil {
			continue
		}

then: filter cli process

   // The master list comes from cli processes, even if sidecar is not up.
for _, proc := range processes {
	executable := strings.ToLower(proc.Executable())
	if (executable == "dapr") || (executable == "dapr.exe") {
		pID := proc.Pid()

can't find dapr process
image

@artursouza
Copy link
Member

This is a missing feature. It was never designed to run inside a container for local mode, only K8s. I can take a PR that enabled container mode for the Dashboard.

@aktxyz
Copy link

aktxyz commented Aug 17, 2022

+1

@attila-balint-kul
Copy link

+1

@LeoHexspoor
Copy link

I had the same issues, building a local image including this PR #252 solved it for me.

@zeke-edamama-ph
Copy link

any update on this :) ?

@hernandoz
Copy link

this would be a great if we can access the dashboard in a docker Network +1 , any updates ?

@magkal
Copy link

magkal commented Apr 10, 2024

Any updates? I can see #38 that had an example commit for this was closed referencing this issue. Is it just when running on a custom network with docker-compose it's not working now?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

9 participants