#!/bin/bash
# source: https://eff-certbot.readthedocs.io/en/latest/install.html#alternative-1-docker
+# make sure the local image is always up to date
+docker image pull certbot/dns-route53
+
+# run local instance only long enough to collect the certificate
docker run --rm --name certbot \
-v "/etc/letsencrypt:/etc/letsencrypt" \
-v "/var/lib/letsencrypt:/var/lib/letsencrypt" \