Sign inSign up

msrd0/dehydrated

By msrd0

Updated over 7 years ago

Docker image to auto-obtain ssl certificates using dehydrated & lets encrypt

Image
0

1.0K

msrd0/dehydrated repository overview

docker-dehydrated

This image is available on Docker Hub: msrd0/dehydrated

This image is periodically creating new SSL certificates for your domains through docker.

To use this image, first create a file containing the following configuration:

country="DE"
state="Bundesland"
location="Meine Stadt"
organization="Tolle Firma GmbH"

domains=(
  "firma.de"
  "tolle.firma.de"
)

This image is designed to be used in a docker-compose setup with another container running an HTTP server, for example nginx:

nginx:
  image: nginx
  volumes:
    - "/path/to/acme:/acme/.well-known/acme-challenge:ro"
    - "/path/to/certs:/etc/nginx/certs:ro"
  restart: always

dehydrated:
  image: msrd0/dehydrated
  volumes:
    - "./domains.sh:/etc/domains.sh:ro"
    - "/path/to/acme:/acme"
    - "/path/to/certs:/certs"
  restart: always

How it works

When started, this image first creates a self-signed key for all of your domains. This will make sure that nginx can start. Then, after waiting some time to make sure nginx had enough time to start, it will generate a CSR for every domain and get a signed certificate using dehydrated / Let's Encrypt.

TBD: nginx needs to be auto-reloaded

Tag summary

Content type

Image

Digest

Size

28.7 MB

Last updated

over 7 years ago

docker pull msrd0/dehydrated