From 223bc9a609bb35f593440376e5614b295a176598 Mon Sep 17 00:00:00 2001 From: askiiart Date: Tue, 14 Nov 2023 08:07:46 -0600 Subject: [PATCH] Change to CMD, fix README --- Dockerfile | 2 +- README.md | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 4c2e4cb..0587c0c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,4 +3,4 @@ WORKDIR /etc/nginx RUN pip install certbot certbot-nginx RUN apk add nginx COPY run.sh /root -ENTRYPOINT ["/root/run.sh"] \ No newline at end of file +CMD ["/root/run.sh"] \ No newline at end of file diff --git a/README.md b/README.md index 102fe57..a081a74 100644 --- a/README.md +++ b/README.md @@ -2,14 +2,14 @@ [![Build Status](https://drone.askiiart.net/api/badges/askiiart/docker-certbot-nginx/status.svg?ref=refs/heads/main)](https://drone.askiiart.net/askiiart/docker-certbot-nginx) -`createrepo_c` in a Docker container +`certbot` with `nginx` support in a Docker container ## Running Example `docker run`: ```bash -docker run -d -e CERTBOT_DNS_PLUGIN=certbot-dns-cloudflare -v ./nginx-conf:/etc/nginx docker.askiiart.net/askiiart/certbot-nginx --version +docker run -d -e CERTBOT_DNS_PLUGIN=certbot-dns-cloudflare -v ./nginx-conf:/etc/nginx docker.askiiart.net/askiiart/certbot-nginx certbot --version ``` Example `docker-compose.yml`: @@ -23,9 +23,11 @@ services: - CERTBOT_DNS_PLUGIN=certbot-dns-cloudflare volumes: - ./nginx-conf:/etc/nginx - command: --version + command: certbot --version ``` +To add a DNS plugin, set the `CERTBOT_DNS_PLUGIN` environment variable to the name of the plugin to install. Plugins list [here](https://eff-certbot.readthedocs.io/en/latest/using.html#dns-plugins). + ### Environment Variables | Variable | Description | Default |