plugsy / core

A simple, pluggable dashboard and status page
164 stars 4 forks source link

Possibility to add group ? #38

Closed mattthhdp closed 3 years ago

mattthhdp commented 3 years ago

So it will be easier to "regroup" services like website

Inlustra commented 3 years ago

I'm a little confused, if you look at the video in the README you should see that grouping is possible using the category label/config

mattthhdp commented 3 years ago

sorry i was in a hurry and see that it miss a lot of my original question (which was in my head ... why can you read inside people head !! ^^) Is it possible to have 2 dockerDash.name, category, and link so i can group lan and wan differently on my dashboard.

Inlustra commented 3 years ago

Sorry, I'm still not understanding the question, you can have one dockerDash.name etc per container.

Are you asking if you can have multiple for the same container? It put the same container in multiple categories? On 25 Sep 2021, 9:16 PM +0200, Jaune @.***>, wrote:

sorry i was in a hurry and see that it miss a lot of my original question (which was in my head ... why can you read inside people head !! ^^) Is it possible to have 2 dockerDash.name, category, and link so i can group lan and wan differently on my dashboard. —You are receiving this because you commented.Reply to this email directly, view it on GitHub, or unsubscribe.Triage notifications on the go with GitHub Mobile for iOS or Android.

mattthhdp commented 3 years ago

Im really sorry for the bad explaination is it possible to have 2 dockerDash.link and group for the same container ? so i can put it on 2 group (lan and wan) lets said something like this

  deluge:
    image: linuxserver/deluge ##V2
    container_name: deluge
    ports:
      - 8112:8112
      - 58846:58846
      ........
    labels:
      - "traefik.enable=true"
      - "dockerDash.name=Deluge"
      - "dockerDash.category=Media-LAN"
      - "dockerDash.category=Media-WAN"
      #- "dockerDash.icon=@styled-icons/fluentui-system-regular/Communication"
      - "dockerDash.link=http://Lanip:8112"
      - "dockerDash.link=https://wanip"
Inlustra commented 3 years ago

Unfortunately it's not really made to do that, what you're suggesting kind of feels to me like you should think about using the parents/children concept, it can have multiple:

      dockerDash.parents: 'transmission,jackett,prowlarr'

If you really do want to have multiple of the same, at the cost of more docker polling, you can use the config file

{
  "$schema": "https://github.com/plugsy/core/releases/download/v3.0.1/config-schema.json",
  "connectors": [
    {
      "type": "DOCKER",
      "config": {}
    },
    {
      "type": "DOCKER",
      "config": {
        "labelConfig": {
          "categoryLabel": "dockerDash.category2",
          "iconLabel": "dockerDash.icon2",
          "linkLabel": "dockerDash.link2",
          "nameLabel": "dockerDash.name2",
          "parentsLabel": "dockerDash.parents2"
        }
      }
    }
  ]
}

And with this, you can now do what you're asking in your yaml

  deluge:
    image: linuxserver/deluge ##V2
    container_name: deluge
    ports:
      - 8112:8112
      - 58846:58846
      ........
    labels:
      - "traefik.enable=true"
      - "dockerDash.name=Deluge"
      - "dockerDash.category=Media-LAN"
      - "dockerDash.category2=Media-WAN"
      #- "dockerDash.icon=@styled-icons/fluentui-system-regular/Communication"
      - "dockerDash.link=http://Lanip:8112"
      - "dockerDash.link2=https://wanip"
mattthhdp commented 3 years ago

Thanks you !