I am struggling with MQTT. I have the image and container but Home Assistant is not connecting to it.
I’m getting this error and I do not see the folders. I tried creating them manually and chmod to 0777.
If you’re passing ports you don’t need network=host. Use one or the other.
You’re telling home assistant to look for a DNS entry named core-mosquitto. Does that hostname exist on your network? Why not just use the IP address of it?
The directories need to exist before you run your container.
I missed that… didn’t see it as a host rather than a default of when I had HassIO. Sheesh, thank you for pointing it out (again). I did get the user/pass to work with mosquitto_passwd -c passwordfile user in etc/mosquitto.
currently pulling out my hair trying to figure this out as well…
Just made the leap to a NUC and trying to get off the ground running HASS in a Docker container. I’ve managed that OK but haven’t been successful trying to setup SSL for secure remote access from my phone outside my home network…
Thanks for the recommendation. I successfully got the linuxserver/letsencrypt container up and running which I think accomplishes what you’re suggesting (Nginx webserver and reverse proxy with php support and a built-in letsencrypt client).
I’m still seeing the same error in Home Assistant’s logs:
2018-02-17 17:49:45 ERROR (MainThread) [homeassistant.config] Invalid config for [http]: not a file for dictionary value @ data['http']['ssl_certificate']. Got '/opt/docker/letsencrypt/etc/letsencrypt/live/example.duckdns.org/fullchain.pem'
not a file for dictionary value @ data['http']['ssl_key']. Got '/opt/docker/letsencrypt/etc/letsencrypt/live/example.duckdns.org/privkey.pem'. (See /config/configuration.yaml, line 38).
Thanks, I removed the SSL key/cert from config.yaml and now receive a
ERR_SSL_PROTOCOL_ERROR instead of connection refused - a sign of progress . I’ll keep playing around with the let’s encrypt setup to iron out the kinks. Appreciate the help!
The docker hub page for let’sencrypt image indicates it:
sets up an Nginx webserver and reverse proxy with php support and a built-in letsencrypt client that automates free SSL server certificate generation and renewal processes.
Are you saying that in addition to this, I need a separate nginx reverse proxy container?