Sanderhuisman / home-assistant-custom-components

🏡 Custom components for Home-Assistant
https://www.home-assistant.io/
Apache License 2.0
33 stars 12 forks source link

component can be used only with one Docker #16

Closed ed-holland closed 3 years ago

ed-holland commented 4 years ago

My setup has several dockers runing on PI's.

Is it possible to extend it so that i can be used for more than one docker target? Maybe similar to how it can be done with Sensors.

My current workaround is to duplicate the component and changing the domain name.

firestrife23 commented 4 years ago

Portainer does this by accessing docker's API via TCP protocol instead of traditional method of pointing at /var/run/docker.sock file. I would like to see something like this:

docker_monitor:
  servers:
    - host: 192.168.10.5:2375
      name: docker_1
    - host: 192.168.10.6:2375
      name: docker_2
    - host: 192.168.10.7:2375
      name: docker_3

P.S. This will make my life easier not having to re-add the volume /var/run/docker.sock to Hass.io container after upgrading.

saarsinai commented 4 years ago

would love to see this feature also, want to integrate multiple docker engines to HA. what are the chances this will be a feature?