We have some dockerized PHP applications with custom docker images so that the PHP mail() function actually works.
When we build the images, we are COPYing the certs into the image at build time. This works great... for 90 days.
In order to renew, we are having to shut down the web-app, renew LetsEncrypt manually, then re-build, and re-deploy a new image with the new certs.
I feel like I should be able to do this with named containers so that the renewal is automatic, but I can't wrap my brain around it.
Does anyone have a working playbook for this?