-
Notifications
You must be signed in to change notification settings - Fork 824
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Docker renewing certificate(s) on startup even if certificate exists #789
Comments
Hi, the front of the README has a warning about this:
Also please note that this project's name and DockerHub registry have changed. We are still pushing to Lastly, I'd strongly advise against using |
Thank you for your response. I had read that section but did not really comprehend how to implement it. I followed the links and did not gather any information that was specific enough for me and actually confused me on what I needed to do. In fact I spent part of the day searching for items pertaining to acme.sh and implementing it in a YML file - which really took me further off course. But! I finally did realize that what I needed to do was to create a volume in the volumes section of both my letsencrypt-proxy and nginx-proxy containers in the YML containing:
This was not obvious to me from that snippet. Also there is a link further down in that page that was supposed to be related to persistence. There was no reference information there about needing that volume. So that maybe should be adjusted? Thanks again for your response. |
Thank you both so much!
Those two bits of information helped me out. I spent so much time and a sleepless night with this. The linked issue might not be too helpful for newbies. And btw: docker hub for Thank you! |
@stevmon @Pryla any PR with clarification to the README.md are welcome
Unfortunately you're not missing anything, I don't have direct modification right over the Readme of https://hub.docker.com/r/jrcs/letsencrypt-nginx-proxy-companion, I want to fix this but I haven't had the time yet. |
You don't need to add this volume to the nginx-proxy container, only the acme-companion container reads from / writes to |
Thank you for your responses. I was really suffering not knowing what I was doing wrong. |
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
We are trying to switch a client to use jrcs for certificates so we can use v2 for letsencrypt certificates.
I have a test environment set up using docker-compose since there are big changes to the docker-compose.yml file.
I was using the staging URL in the YML file but wanted to check to make sure that we could retrieve a "real" certificate for the site and not have to accept a self-signed certificate. (I think that was what the browser needed...)
So I commented out the line "# ACME_CA_URI: https://acme-staging-v02.api.letsencrypt.org/directory" in the YML file and everything seemed well. The certificate was accepted in the browser no problem.
But we noticed that each time I performed a "docker-compose down" and then a "docker-compose up" it would reload/pull new certificates for the site.
I don't think this should be normal operation as the certificates should already be persistent according to all I have read.
A couple of excerpts that I think might be relevant from the logs:
My YML file is as follows:
Is it normal behavior to re-fetch certificates on startup? If it is my concern is that on the production server if we are doing other updates or changes that might require multiple restarts I might run out of quota for certificates and mess up the website for customers as far as certificates go.
According to the 120,000 YML files I have reviewed the certificate(s) should be persistent but that does not seem to be the case.
Any idea what I am missing?
Thanks!
The text was updated successfully, but these errors were encountered: