Change to CMD, fix README

This commit is contained in:
askiiart 2023-11-14 08:07:46 -06:00
parent 295edcd693
commit 223bc9a609
Signed by untrusted user who does not match committer: askiiart
GPG key ID: BC3800E55FB54D67
2 changed files with 6 additions and 4 deletions

View file

@ -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"]
CMD ["/root/run.sh"]

View file

@ -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 |