After running certbot successfully and mounted ~/docker/letsencrypt/etc/letsencrypt, the /etc/letsencrypt in the docker-mailserver was empty. Certificates are now located in ~/docker/letsencrypt/etc/live, reason I suggested the edit for mounting the right path of `/home/ubuntu/docker/letsencrypt/etc/`

This commit is contained in:
Edmond Varga 2017-08-25 09:15:39 +03:00
parent 8d7579b45e
commit d513564d98
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@ This will need access to port 443 from the internet, adjust your firewall if nee
``` ```
docker run --rm -ti -v $PWD/log/:/var/log/letsencrypt/ -v $PWD/etc/:/etc/letsencrypt/ -p 443:443 deliverous/certbot certonly --standalone -d mail.myserver.tld docker run --rm -ti -v $PWD/log/:/var/log/letsencrypt/ -v $PWD/etc/:/etc/letsencrypt/ -p 443:443 deliverous/certbot certonly --standalone -d mail.myserver.tld
``` ```
You can now mount /home/ubuntu/docker/letsencrypt/etc/letsencrypt in /etc/letsencrypt of ```docker-mailserver``` You can now mount /home/ubuntu/docker/letsencrypt/etc/ in /etc/letsencrypt of ```docker-mailserver```
To renew your certificate just run (this will need access to port 443 from the internet, adjust your firewall if needed) To renew your certificate just run (this will need access to port 443 from the internet, adjust your firewall if needed)
``` ```