This commit is contained in:
Juan Ferrer 2020-02-06 10:51:28 +01:00
parent 2944d8cdc1
commit caa50e46dd
2 changed files with 17 additions and 0 deletions

15
certbot/Dockerfile Normal file
View File

@ -0,0 +1,15 @@
FROM debian:buster-slim
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
certbot \
python3-certbot-dns-rfc2136 \
cron \
&& rm -rf /var/lib/apt/lists/*
COPY certbot-renew /etc/cron.d/
VOLUME ["/etc/letsencrypt"]
CMD ["cron", "-f"]

2
certbot/certbot-renew Normal file
View File

@ -0,0 +1,2 @@
MAILTO=hostmaster
0 */12 * * * root certbot -q renew