Code Monkey home page Code Monkey logo

docker-flow-proxy-letsencrypt's Introduction

Docker Flow Proxy Letsencrypt

Build Status

docker-flow-proxy-letsencrypt is a docker-flow-proxy companion that automatically create and renew certificates for your swarm services using letsencrypt.

Join the #df-letsencrypt Slack channel in DevOps20 and ping me (@nibor) if you have any questions, suggestions, or problems.

Concept

The mecanism is mostly inspired by the JrCs/docker-letsencrypt-nginx-proxy-companion designed for jwilder/nginx-proxy.

Normally (without using DFPLE) when a new service is created in the swarm, the docker-flow-swarm-listener (DFSL) will send a notify request to the docker-flow-proxy (DFP) wich reload based on new config.

DFSL  -----notify----->  DFP

docker-flow-proxy-letsencrypt (DFPLE) acts as a man-in-the-middle service which gets notify requests from DFSL, process its work, and then forward original request to DFP.

DFSL  -----notify----->  DFPLE  -----notify----->  DFP

Its work consists in :

  • check if letsencrypt support is enabled by the service (check service labels)
  • generate or renew certificates using certbot utility (if support enabled)
  • distribute certificates to DFP (if support enabled)
  • forward request to dfp

Get started

Check the tutorial to get started with docker-flow-proxy-letsencrypt environment.

Please note that in order to keep persistent certificates :

  • on DFPLE side : you will need to use a volume on /etc/letsencrypt,
  • on DFP side : you will have to either use a volume (see example using volumes) or store certificates as secrets (see example using secrets)

You can use both dns and http letsencrypt ACME challenges (see configuration).

Automatic renewal is performed at fixed interval. By default renewal process is performed once per day at 2.30 am. You can specify your own interval using LETSENCRYPT_RENEWAL_CRON env var on DFLE (see configuration).

docker-flow-proxy-letsencrypt's People

Contributors

lgazo avatar n1b0r avatar omgimalexis avatar vnkmpf 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.