docker-nginx-ssl-proxy icon indicating copy to clipboard operation
docker-nginx-ssl-proxy copied to clipboard

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

Open tngflx opened this issue 4 years ago • 3 comments

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

tngflx avatar Sep 15 '19 04:09 tngflx

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.

AngelOnFira avatar Nov 08 '19 23:11 AngelOnFira

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.

sgehrman avatar Dec 06 '19 08:12 sgehrman

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

Mugane avatar Oct 06 '22 19:10 Mugane