Sign inSign up

tvrbo/certbot

By tvrbo

•Updated almost 10 years ago

Standalone HTTP Certbot client for Docker

Image
0

211

tvrbo/certbot repository overview

⁠Tvrbo Certbot

Standalone HTTP Certbot client for Docker. Only port 80 is used. Port 443 remains available for your HTTPS server.

There are two versions available: alpine and jessie (Debian)

docker pull tvrbo/certbot:alpine or docker pull tvrbo/certbot:jessie

⁠Usage (alpine)

⁠Create two volumes:

These volumes will persist the settings on /etc and /var

docker volume create --name letsencrypt
docker volume create --name letsencrypt-var
⁠Run the first fetching for your domain:

Make sure that the port 80 of your server is accessible from the internet.

docker run -e [email protected] -e DOMAINS=your.domain.com --rm -it -p 80:80 -v letsencrypt:/etc/letsencrypt -v letsencrypt-var:/var/lib/letsencrypt tvrbo/certbot:alpine certbot-fetch.sh

This will copy the Letsencrypt files in the newly created volumes.

⁠Renew the certificates:
docker run -e [email protected] -e DOMAINS=your.domain.com --rm -it -p 80:80 -v letsencrypt:/etc/letsencrypt -v letsencrypt-var:/var/lib/letsencrypt tvrbo/certbot:alpine certbot-renew.sh
⁠Use them

Finally, run your Docker machine with the letsencrypt volume mounted on /etc/letsencrypt. All the certificates and keys will be inside /etc/letsencrypt/live/your.domain.com/.


⁠Usage (jessie)

⁠Create a volume:

These volumes will persist the settings on /etc and /var

docker volume create --name letsencrypt
⁠Run the first check for your domain:

Make sure that the port 80 of your server is accessible from the internet.

docker run -e [email protected] -e DOMAINS=your.domain.com --rm -it -p 80:80 -v letsencrypt:/etc/letsencrypt tvrbo/certbot:jessie certbot-fetch.sh

This will copy the Letsencrypt files in the newly created volumes.

⁠Renew the certificates:
docker run -e [email protected] -e DOMAINS=your.domain.com --rm -it -p 80:80 -v letsencrypt:/etc/letsencrypt tvrbo/certbot:jessie certbot-renew.sh
⁠Use them

Finally, run your Docker machine with the letsencrypt volume mounted on /etc/letsencrypt. All the certificates and keys will be inside /etc/letsencrypt/live/your.domain.com/.

Tag summary

Content type

Image

Digest

Size

85.8 MB

Last updated

almost 10 years ago

docker pull tvrbo/certbot:jessie