No description
Find a file
askiiart f4d03d5190
All checks were successful
continuous-integration/drone Build is passing
Finally get run.sh working properly
2023-11-14 13:25:43 -06:00
.drone.yml Initial commit, definitely not done yet 2023-11-13 22:08:27 -06:00
build-and-push.sh Initial commit, definitely not done yet 2023-11-13 22:08:27 -06:00
Dockerfile Finally get run.sh working properly 2023-11-14 13:25:43 -06:00
README.md Finally get run.sh working properly 2023-11-14 13:25:43 -06:00
run.sh Finally get run.sh working properly 2023-11-14 13:25:43 -06:00

docker-certbot-nginx

Build Status

certbot with nginx support in a Docker container

Running

Example docker run:

docker run -d -v ./nginx-conf:/etc/nginx docker.askiiart.net/askiiart/certbot-nginx certbot --version

Example docker-compose.yml:

version: '3.7'
services:
  hugo:
    image: docker.askiiart.net/askiiart/certbot-nginx
    volumes:
      - ./nginx-conf:/etc/nginx
    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.

Environment Variables

Variable Description Default
CERTBOT_DNS_PLUGIN The certbot dns plugin to use none

Building

  1. Run docker build .

Some commands

Check if nginx config is valid:

docker run --rm -v ./nginx-conf:/etc/nginx docker.askiiart.net/askiiart/certbot-nginx nginx -t

First generate certs (from nginx configs):

docker run -it --rm -v ./nginx-conf:/etc/nginx docker.askiiart.net/askiiart/certbot-nginx certbot --nginx

Renew certs:

docker run -it --rm -v ./nginx-conf:/etc/nginx docker.askiiart.net/askiiart/certbot-nginx certbot renew