-
Notifications
You must be signed in to change notification settings - Fork 301
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
Volume to store certificates #239
Comments
Hi, By default an anonymous volume is created, and HTTPS-PORTAL will try to avoid re-creating the certificates if possible. Is your Docker setup special that it ignores the volumes created? Do you have If you have a normal docker-compose setup, paste your config here. I can have a look. |
Thanks for the answer ! I don't have anything special in my Docker setup, and Here's my docker-compose file:
|
One thing you can try is to remove the whole docker images together with their storage volumnes. |
Thank you for the help! I'll try to mount |
I got bit by this too (and am currently rate-limited because of it 😭). I learned that If your workflow entails removing the container then you need a non-anonymous volume. If you don't want to mount a specific host directory then you can use a named volume like so: version: "3.8"
volumes:
ssl-certificates:
services:
https-portal:
image: steveltn/https-portal:1
# ...
volumes:
- ssl-certificates:/var/lib/https-portal |
Yeah... if you just need to stop the containers you just do ‘docker-compose
stop.’
…On Sat, 12 Dec 2020 at 2:48 AM Matt Kantor ***@***.***> wrote:
I got bit by this too (and am currently rate-limited because of it 😭).
docker-compose does not reuse anonymous volumes if you do docker-compose
down && docker-compose up (or anything else that causes the https-portal
container to be removed). See this issue
<docker/compose#7444> for details.
If your workflow entails removing the container then you need a
non-anonymous volume. If you don't want to mount a specific host directory
then you can use a named volume
<https://docs.docker.com/compose/compose-file/#volume-configuration-reference>
like so:
version: "3.8"
volumes:
ssl-certificates:
services:
https-portal:
image: steveltn/https-portal:1
# ...
volumes:
- ssl-certificates:/var/lib/https-portal
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#239 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAD4AZZQUSGB5YATQUH2A5DSULDXPANCNFSM4QPBYAWA>
.
|
Hey, I have a question. I hit rate limits for some reason. I wanted to check with you am I doing something wrong (same thing worked in the past). I have GH action which do this on master push:
and here is my docker-compose.yml
I tried just with docker-compose up manually, and I am getting this in a loop:
Thank you |
@djordjedjukic Try this with staging, and move to production when the rate-limit is lifted:
This should avoid getting new certs when upgrading the version. I'll update the document as well. |
@SteveLTN it's working with changes you suggested.
Can you just please explain me, was that a problem, or the problem was that I didn't have volumes mounted? Thank you one more time. |
When you don't configure the Normally this isn't a big problem. But if you upgrade HTTPS-PORTAL many times in a short period, you can potentially be rate-limited by Let's Encrypt server. I'm not sure why Let's Encrypt decides to rate-limit you. That's why I asked you, did you upgrade the version many times recently? |
Well I didn't do anything manually. I did |
I'm encountering an issue with HTTPS-PORTAL where it regenerates SSL certificates every time the container restarts, despite using a named volume for persistence ( |
Hello!
This is more of a question, but I'm in a spot of trouble. I've used this for a while without problems, and everything works great.
However, it seems like the certificates are re-generated each time I start my docker-compose services. This is fine in itself, but I've reached the maximum amount of requests for this week, so it seems like this is a bit more of a problem than I had originally thought.
I've looked through the README but couldn't find what I was looking for : is there a way to create a volume to store the certificates so as to avoid generating a brand new one each time I start my services?
Thanks for the help!
The text was updated successfully, but these errors were encountered: