export CERT_EMAIL=your@email.com
export CERT_DOMAIN=example.com
docker run \
-v $(pwd)/etc:/etc/letsencrypt \
-v $(pwd)/var:/var/lib/letsencrypt \
-e CERT_EMAIL=$CERT_EMAIL \
-e CERT_DOMAIN=$CERT_DOMAIN \
sandeshshrestha/letsencrypt-ssl-certificate-generator:latest generate
Name and value for TXT record will be printed on you terminal. Copy that and add it to you DNS settings.
Could take around 10 mins.
Your certificates are ready to be used in ./etc/live/$CERT_DOMAIN
directory.