Skip to content

Just a container to help on requesting letsencrypt certificates with dns-01 validation

Notifications You must be signed in to change notification settings

gmelillo/docker-dehydrated-lexicon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dehydrated-lexicon

This docker container have inside the latest version of dehydrated and lexicon cli. It is met to create and renew certificates using dns validation.


Environment

All the environment configuration supported by dehydrated and lexicon are supported and used if provided.

Minimumn requirement :

  • PROVIDER (the provider name in lowercase to be passed to lexicon)
  • LEXICON_PROVIDER_* (ALL the variable used by lexicon to authenticate on provider)

Example for digitalocean

With this docker-compose wou will be able to generate/renew all the domains contained into the domains.txt and retrive all the data from the folder certs

docker-compose.yaml

version: '3'

services:
  dehydrated:
    container_name: letsencrypt
    image: gmelillo/dehydrated-lexicon:latest
    volumes:
      - ./certs:/dehydrated/certs
      - ./domains.txt:/dehydrated/domains.txt
      - ./accounts:/dehydrated/accounts
      - ./chains:/dehydrated/chains
    environment:
      LEXICON_DIGITALOCEAN_TOKEN: "DO_TOKEN_GENERATED_ON_THE_SITE"
      PROVIDER: "digitalocean"

docker run

docker run --it --rm --name letsencrypt \
  -v "$(pwd)/certs:/dehydrated/certs" \
  -v "$(pwd)/domains.txt:/dehydrated/domains.txt" \
  -v "$(pwd)/accounts:/dehydrated/accounts" \
  -v "$(pwd)/chains:/dehydrated/chains" \
  -e LEXICON_DIGITALOCEAN_TOKEN="DO_TOKEN_GENERATED_ON_THE_SITE" \
  -e PROVIDER="digitalocean" \
  gmelillo/dehydrated-lexicon:latest

About

Just a container to help on requesting letsencrypt certificates with dns-01 validation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published