Skip to content
This repository was archived by the owner on Jul 28, 2021. It is now read-only.

Persistence of keys via volumes #14

Open
Ramblurr opened this issue Jul 7, 2016 · 3 comments
Open

Persistence of keys via volumes #14

Ramblurr opened this issue Jul 7, 2016 · 3 comments

Comments

@Ramblurr
Copy link

Ramblurr commented Jul 7, 2016

Currently this image persists the keys and lets encrypt information in the container. This isn't ideal if the container is removed, as key generation for all the hosts must happen again.

Is there a convenient directory in the container that can be mounted as a volume to provide persistence?

If so, that would be a nice addition to the readme.

@clayrisser
Copy link

clayrisser commented Nov 9, 2016

From the dockerhub documentation on letsencrypt-nginx-proxy

Volumes

Letsencrypt saves the certificates in /etc/letsencrypt/live. From there, they are linked to the Nginx certificate folder /etc/nginx/certs. You might want to map either the first volume or both of them, if you like your certifacates to survive container recreation.

@kortenkamp
Copy link

This is not sufficient, you have to map a volume to /etc/letsencrypt/archive as well, as only links to archive will be created in live. Or maybe it is sufficient to map archive only – but maybe @eforce21 can comment on that?

@evodicka
Copy link
Contributor

evodicka commented Jan 2, 2017

You are correct about /etc/letsencrypt/archive. This one was missing in the documentation. An additional volume declaration will be added to the Dockerfile of the current development version.

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

No branches or pull requests

4 participants