ualex73 / monitor_docker

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

DOCKER_TLS_VERIFY & ...CERT_PATH where to set the env. vars? #27

Closed mwunderling closed 3 years ago

mwunderling commented 3 years ago

This question is related to Q's 4&5 in the Q&A section

I am able to connect this component to the same Docker instance home assistant is running in but I also have a 2nd Docker instance running on a separate NAS box that I would like it to connect to. Per Q4, I see the docker_tls_verify & docker_cert_path environment variables need to be set, but where?

ualex73 commented 3 years ago

I added a docker-compose example to the Q&A 4, does this answer your question? The monitor_docker can only support 1 or more TCP without TLS or TCP with TLS, you cannot mix it (it is a limitation of the library I use).

mwunderling commented 3 years ago

LOL, yes, pretty sure. Will give a try a little later.

Looks like I just about had it, Forgot to add the cert volume path in compose for HA. Had already tried with the env vars there but wasn't convinced that was the proper location for them... thus the question. Thanks!