Skip to content
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

/ssl/letsencrypt gets wiped on docker restart #1

Open
ecawthon opened this issue Feb 16, 2019 · 1 comment
Open

/ssl/letsencrypt gets wiped on docker restart #1

ecawthon opened this issue Feb 16, 2019 · 1 comment

Comments

@ecawthon
Copy link
Member

and I'm not sure where it's configured.
Workaround: To add new subdomains, I've been manually editing /srv/web/ssl/letsencrypt.list, then:

# docker exec -ti web script -q -c "/bin/bash" /dev/null
root@web/# /usr/sbin/nginx -s reload
root@web/# /letsencrypt/dockergen.sh
root@web/# cd /ssl
root@web/ssl# ln -s letsencrypt/live/subdomain.cloyne.org/fullchain.pem subdomain.cloyne.org.crt
root@web/ssl# ln -s letsencrypt/live/subdomain.cloyne.org/privkey.pem subdomain.cloyne.org.key

(Approximately)

@mitar
Copy link
Member

mitar commented Jul 20, 2023

You have to mount /ssl directory outside of the container so that it is preserved between restarts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants