Giter VIP home page Giter VIP logo

letsencrypt-nginx-sidecar's Introduction

letsencrypt-nginx-sidecar

Run letsencrypt and nginx in a docker-compose side car, providing automatic certificate renewal and SSL for your web apps.

This is based on https://github.com/JrCs/docker-letsencrypt-nginx-proxy-companion, but with the nginx + letsencrypt containers decoupled from your webapp containers.

This is my workaround for a letsencrypt certificate renewal exhaustion issue that some users encounter: #374

Use

  • Create the letsencrypt docker network:
docker network create letsencrypt
  • Now start the sidecar with cd sidecar && docker-compose up -d. This starts an nginx reverse proxy with a Lets Encrypt sidecar that automatically provisions certificates for application servers that join the letsencrypt docker network.

  • Use the docker-compose.yml file as your template for your webapps. Set the VIRTUAL_PORT to the port that your container listens on. The nginx proxy will listen on the host machine's ports 80 and 443, and proxy traffic based on the VIRTUAL_HOST you set, using LetsEncrypt certificates that it will get.

  • Start your webapp with docker-compose up -d

Now you can bring your webapp up and down as much as you need to, to update it, and have no issue with certificate renewal exhaustion, as the letsencrypt container stays up all the time.

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.