DanielDent / docker-nginx-ssl-proxy

SSL Front-End Proxy With Automatic Free Certificate Management
https://hub.docker.com/r/danieldent/nginx-ssl-proxy/
Other
204 stars 68 forks source link

Stop acquiring new certificate if it's already available in /etc/letsencrypt folder #29

Open tngflx opened 5 years ago

tngflx commented 5 years ago

How can I stop certbot from requesting new cert if it's already requested before. Each time I reran my docker container it will rerequest again. And each domain name have a limit of attached cert

AngelOnFira commented 4 years ago

If you are storing the volume, then it will save and not re-request it. However, if you are removing the container, it will be forced to make a new volume when it is making a new container.

Since the suggested method is using Docker volumes, you can change it to a folder on your computer. That way, even if the container is removed, it will still reference the same folder with the same cert.

sgehrman commented 4 years ago

I keep hitting the letsencrypt rate limit. When I do a docker-compose down, it removes the container. I didn't know this would mess up my certs. Now I have to wait a week until I can get more certs. Using the volume should not be recommended. I'll use a directory from now on.

Mugane commented 1 year ago
    volumes:
      # this mapped volume allows the certificate to be reused across builds (stored on host):
      - /etc/letsencrypt:/etc/letsencrypt