Local IP address creates SSL error

Yep, so, if that is indeed an identifier by which your server is known, you need to add 172.19.0.8 to your site’s addresses so Caddy knows to manage a certificate for that IP. It will be a locally-trusted cert of course, not one that you can get from a free public CA.