Change to CMD, fix README
This commit is contained in:
parent
295edcd693
commit
223bc9a609
2 changed files with 6 additions and 4 deletions
|
@ -3,4 +3,4 @@ WORKDIR /etc/nginx
|
||||||
RUN pip install certbot certbot-nginx
|
RUN pip install certbot certbot-nginx
|
||||||
RUN apk add nginx
|
RUN apk add nginx
|
||||||
COPY run.sh /root
|
COPY run.sh /root
|
||||||
ENTRYPOINT ["/root/run.sh"]
|
CMD ["/root/run.sh"]
|
|
@ -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)
|
[![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
|
## Running
|
||||||
|
|
||||||
Example `docker run`:
|
Example `docker run`:
|
||||||
|
|
||||||
```bash
|
```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`:
|
Example `docker-compose.yml`:
|
||||||
|
@ -23,9 +23,11 @@ services:
|
||||||
- CERTBOT_DNS_PLUGIN=certbot-dns-cloudflare
|
- CERTBOT_DNS_PLUGIN=certbot-dns-cloudflare
|
||||||
volumes:
|
volumes:
|
||||||
- ./nginx-conf:/etc/nginx
|
- ./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
|
### Environment Variables
|
||||||
|
|
||||||
| Variable | Description | Default |
|
| Variable | Description | Default |
|
||||||
|
|
Loading…
Reference in a new issue