Open agittins opened 6 years ago
Hey @agittins Apologies for the ridiculously slow reply, I've been so busy and totally missed this.
Please see my comments on https://github.com/Stono/docker-nginx-letsencrypt/issues/3 which talk about taking LE generation outside of the container. I'd probably recommend a similar model for you.
This has been working well for me for a while now, but I found that the certificates didn't renew in the last couple of weeks, so I just manually stopped/started the image and then it renewed the certs ok.
The readme hints that renewal only happens on startup, is this true? Is there a way to trigger a renewal without restarting the image?
For some other images I use a cron entry on the host to run a docker-exec command inside a desired container periodically. I can't see what single command I could run though, other than calling generate_letsencrypt.sh with each FQDN, or simply restarting the image.
Is there a recommended way? Is the image expected to just be restarted every week or so?