Excellent post! I spent hours looking at how to have SSL in my home assistant core mounted on docker-compose.
I was finally able to do it by following his steps and adding the corresponding volume:
volumes: - /home/pi/homeassistant:/config - /etc/letsencrypt/archive/mydomain.duckdns.org:/config/ssl - /etc/localtime:/etc/localtime:ro
And this in configuration.yaml of Home Assistant:
http:
ssl_certificate: /config/ssl/fullchain1.pem
ssl_key: /config/ssl/privkey1.pem
To renew, your commands didn’t work for me, but this command did work:
certbot renew --cert-name mydomain.duckdns.org
Hope this can help someone if they have the same problems as me, thanks for your tutorial!