Github: https://github.com/kernrj/certbot-docker
This creates and renews a certficate for a single domain.
This image is designed for use when port 80 is free. It's meant for email, https-only, etc servers.
Required environment variables:
Optional environment variables:
An external, wrieable directory must be mapped to /etc/letsencrypt. Keys and certs are stored here.
Port 80 on the host needs to be mapped to port 80 in the container.
Example docker command:
docker run \
-p 80:80 \
-e AGREE_TOS=yes \
-e CERT_DOMAIN=www.example.com \
-e [email protected] \
-v $(pwd)/letsencrypt:/etc/letsencrypt \
-it kernrj/certbot
Example docker-compose.yml:
version: '2'
services:
certbot:
image: kernrj/certbot
ports:
- 80:80
volumes:
- type: bind
source: /etc/letsencrypt
target: /etc/letsencrypt
environment:
- CERT_DOMAIN=example.com
- [email protected]
- AGREE_TOS=yes # Specifying "yes" means you agree to the terms of service in the certbot application in the container being launched. This is equivalent to `certbot --agree-tos`.
Content type
Image
Digest
sha256:f6587f82c…
Size
108.4 MB
Last updated
8 months ago
docker pull kernrj/certbot