Replace deliveries/certbot docker image by official certbot/cerbot

This commit is contained in:
Germain Masse 2019-11-04 19:36:52 +01:00
parent bb7bfdbf1e
commit 2ebea365e6

View file

@ -29,13 +29,13 @@ cd /home/ubuntu/docker/letsencrypt
Now get the certificate (modify ```mail.myserver.tld```) and following the certbot instructions. Now get the certificate (modify ```mail.myserver.tld```) and following the certbot instructions.
This will need access to port 80 from the internet, adjust your firewall if needed This will need access to port 80 from the internet, adjust your firewall if needed
``` ```
docker run --rm -ti -v $PWD/log/:/var/log/letsencrypt/ -v $PWD/etc/:/etc/letsencrypt/ -p 80:80 deliverous/certbot certonly --standalone -d mail.myserver.tld docker run --rm -ti -v $PWD/log/:/var/log/letsencrypt/ -v $PWD/etc/:/etc/letsencrypt/ -p 80:80 cerbot/certbot certonly --standalone -d mail.myserver.tld
``` ```
You can now mount /home/ubuntu/docker/letsencrypt/etc/ 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)
``` ```
docker run --rm -ti -v $PWD/log/:/var/log/letsencrypt/ -v $PWD/etc/:/etc/letsencrypt/ -p 80:80 -p 443:443 deliverous/certbot renew docker run --rm -ti -v $PWD/log/:/var/log/letsencrypt/ -v $PWD/etc/:/etc/letsencrypt/ -p 80:80 -p 443:443 certbot/certbot renew
``` ```
#### Example using docker, nginx-proxy and letsencrypt-nginx-proxy-companion #### #### Example using docker, nginx-proxy and letsencrypt-nginx-proxy-companion ####