Code Monkey home page Code Monkey logo

docker-acme's Introduction

Docker ACME client

Docker image based on acme-tiny and docker-gen.

Usage

See docker-compose.yml for an usage example.

The used nginx.tmpl is based on nginx-proxy.

Basic settings

docker run --rm \
    -v /var/run/docker.sock:/var/run/docker.sock \
    -v /srv/acme_config/:/acme/config/ \
    -v /srv/nginx/crt/:/acme/crt/ \
    -v /srv/nginx/www/.well-known/acme-challenge/:/acme/acme_challenge/ \
    bboehmke/docker-acme

Note: if no account.key exist in /acme/config/ a new one is created.

Predefined certificates

Use the environment variable CERT_TEST=domainA,domainB to create a certificate test.crt for all domainA and domainB.

Automatic generated certificates

Add the environment variables VIRTUAL_HOST, CERT_NAME and AUTO_CERT to a docker container.

  • VIRTUAL_HOST: List of domains
  • CERT_NAME: Name of certificate
  • CERT_NOTIFY: true to enable notification of the current container
  • AUTO_CERT: true to enable automatic generation

Notify container

Set the variable CONTAINER_NOTIFY to a list of container names that should be notified if the certificates changed.

Diffie-Hellman Groups

If DH_MAX_AGE is set a file dhparam.pem is generated and recreated in /acme/crt/.

Available Configuration Parameters

  • ACME_CA: URL to ACME CA (Default: https://acme-v01.api.letsencrypt.org)
  • ACME_INTERMEDIATE: Path to intermediate certificate (Default: https://letsencrypt.org/certs/lets-encrypt-x3-cross-signed.pem)
  • CHAINED_CRT: If true add intermediate certificate to *.crt (Default: true)
  • CONTAINER_NOTIFY: Names of container for notification (, separated for multiple container)
  • CRT_MAX_AGE: Max age of certificate before renew in days (Default: 30)
  • DH_MAX_AGE: Max age of Diffie-Hellman param file before renew in days (Default: off)

docker-acme's People

Contributors

bboehmke avatar dtwardow avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.