I’ve moved from a Raspberry Pi to running Home Assistant within a Docker container on an Intel NUC, and I’m trying to setup DuckDNS and Let’s Encrypt.
I’ve got DuckDNS working fine (can access HA at http://MY-DOMAIN.duckdns.org:8123), and managed to install Let’s Encrypt and obtain the certificates using the instructions for Docker here
Set up encryption using Let's Encrypt
But I’m now having trouble accessing Home Assistant’s frontend. HA loads fine (a startup notification I setup when HA starts fires), but if I try to access it at ‘https://MY-DOMAIN.duckdns.org’ it shows the ‘connecting’ image and keeps spinning
The certificates have been saved at:
So I'm wondering if the problem is that the certificates are located outside of Docker, and those locations wern't specified as volumes when setting up the Docker container.
I looked at the folder permissions and they’re all set to root:root, and I’m wondering if HA can’t access them because they’re root:root.
If that’s the problem should I change the permissions to my user account on the Intel NUC (jono:jono) or should be set to homeassistant:homeassistant?
Or should I set a different volume in the Docker container where Home Assistant inside Docker can access the certificates?
-v "~/jono/homeassistant/etc/letsencrypt:/etc/letsencrypt" \ -v "~/jono/homeassistant/var/lib/letsencrypt:/var/lib/letsencrypt" \
-v "/etc/letsencrypt:/etc/letsencrypt" \ -v "/var/lib/letsencrypt:/var/lib/letsencrypt" \