ualex73 / monitor_docker

Monitor Docker containers from Home Assistant
Apache License 2.0
267 stars 34 forks source link

How to configure ha for remote docker on debian? #108

Closed ttmader closed 1 month ago

ttmader commented 1 year ago

Hi,

I am currently controlling the dockers with rest through port 8126.

If I configure that port in monitor_docker it does not detect it.

How can I do it to monitor it?

Thanks.

ualex73 commented 1 year ago

The example you supply, is not compatible with the "monitor_docker". You need to expose the docker API of your Debian node to the "monitor_docker", so it needs to be something like:

- name: RemoteDocker
    url: tcp://10.0.0.1:2376
    containers:
    ...

The switch on/off will be automatically added in HA.

poudenes commented 1 year ago

Hi,

I have Home Assistant (HAOS) installed in my RPi48GB. Everything runs perfect. I have lot of docker containers running on my Synology NAS DS220+

My HA is 192.168.100.24 and my NAS is 192.168.100.62

How can I monitor those dockers into my HA?

Tried this but get a error that it can't connect.

- name: RemoteDocker
    url: tcp://192.168.100.62:2376
    containers:
    ...
ualex73 commented 1 month ago

@poudenes for HAOS install you need to also enable port 2375/2376 on HAOS. It is described in the README. I will close this ticket.