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

Agent Issue #39

Open
ma-karai opened this issue Oct 15, 2021 · 6 comments
Open

Agent Issue #39

ma-karai opened this issue Oct 15, 2021 · 6 comments

Comments

@ma-karai
Copy link

Hey Ho, Still digging this project. I tried to set up an agent via ENV var and i am gettin this error

error: ┗ [1] { component: 'agent', error: 'Only absolute URLs are supported' }

docker compose

 plugsy-agent:
    container_name: plugsy-agent
    image: plugsy/agent
    environment:
      - PLUGSY_AGENT_ENDPOINT="http://192.168.0.40:3000/graphql"
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
@ma-karai
Copy link
Author

Ok some more testing on my end. The url has to be defined differently.

- PLUGSY_AGENT_ENDPOINT="http://192.168.0.40:3000/graphql"
should be
- PLUGSY_AGENT_ENDPOINT:http://192.168.0.40:3000/graphq"

however it seems its not possible to run an agent and a server on one docker host right ?

@ma-karai
Copy link
Author

@Inlustra Hey Thomas, are you still working on plugsy ? IMHO one of the best things i have installed for my internal servers :)

@Inlustra
Copy link
Collaborator

Inlustra commented Nov 16, 2021

Hi @ma-karai , I am still working on it, it's just been difficult to find time!

With regards to your question: you should be able to run an agent and a server on the same machine, though I would question why you would want that?

(As the server is itself an agent)

@ma-karai
Copy link
Author

ma-karai commented Nov 19, 2021

Hey @Inlustra

The reasoning for me is just out of convenience.
I have 4 running servers and each of them has its own docker network, I did not create a large swarm network, because the swarm networks are apparently phased out. Each of the server has a single dashboard, sometimes I switch between these servers just from the plugsy plugin. Then i have a simple tablet in the living room where i would like to display all of my services and see at a glance what's online and what's not.

image

image

Some pictures. Anyway, when i create a docker compose file with a server and an agent i can't really send the info to a different server, not sure why.

As a side question, have the labels also changed into plugsy_ instead of dockerdash ?

Also let me rephrase how i think your add-on is just so much better than all these hard coded start pages, sure having the option to see the weather outside is great and all, but for me not really useful :) So thanks again for this tool, if you pm me PayPal address I'd like to donate you some cash for dinner or a six-pack of beers or a pound of coffee. haha

@Inlustra
Copy link
Collaborator

Inlustra commented Nov 29, 2021

Environment variables changed, but the labels have not yet changed, I'll fix that now

I think I should rephrase what I meant - you can configure multiple docker connectors on the same instance without needing an agent + server

An example config:

{
  "$schema": "https://github.com/plugsy/core/releases/download/v6.0.0/core-config-schema.json",
  "loggingLevel": "verbose",
  "connectors": [
    {
      "type": "DOCKER",
      "config": {
        "id": "FirstMachine" // Important to use multiple ids if you have lots of the same connector
      } // This connector uses the default config (IE: Localhost)
    },
    {
      "type": "DOCKER",
      "config": {
        // This connector will connect to a different host
        "id": "SecondMachine",
        "dockerOptions": {
          // This is just an example, use an IDE and this will be autocompleted for you
          "host": "",
          "port": ""
        }
      }
    },
    {
      "type": "DOCKER",
      "config": {
        // This connector will use the default connection parameters but uses the containerMap
        // as well as the labels to grab the container
        "id": "ThirdMachine",
        "containerMap": {
          "dockerdash-core": {
            "category": "Home",
            "icon": "@styled-icons/boxicons-regular/Crown",
            "name": "Plugsy"
          }
        }
      }
    }
  ]
}

Thanks for the offer of a donation, but as I can't spend a whole lot of time on this, I wouldn't want your money going to waste! You should donate to some of the projects that this is supported by!

I would also like to say that I do intend on making this into a full on dashboard - I want to get google calendars, a paperless-ng integration, home-assistant and all the things that I use at home. How we do this from a design and an API design perspective I'm still trying to work out.

But it's on my list, this is one of those projects I keep coming back to

@ma-karai
Copy link
Author

I figured out how to do what i intended to do, and it works great. So i would not mind sending you a sixpack of beer (if you drink) or a pizza :) up to you :)

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

No branches or pull requests

2 participants