Coder Social home page Coder Social logo

bradjonesllc / docker-haproxy-letsencrypt Goto Github PK

View Code? Open in Web Editor NEW
29.0 3.0 23.0 23 KB

Dockerized HAProxy with Let's Encrypt integration

Home Page: https://hub.docker.com/r/bradjonesllc/docker-haproxy-letsencrypt

License: GNU General Public License v2.0

Shell 57.17% Lua 42.83%

docker-haproxy-letsencrypt's Introduction

Dockerized HAProxy with Let's Encrypt

This container provides a HAProxy 1.7 application with Let's Encrypt certificates generated at startup, as well as renewed (if necessary) once a week.

Usage

docker run \
    -e CERTS=my.domain,my.other.domain \
    -e [email protected] \
    -v /etc/letsencrypt:/etc/letsencrypt \
    -p 80:80 -p 443:443 \
    bradjonesllc/docker-haproxy-letsencrypt

You will almost certainly want to create an image FROM this image or mount your haproxy.cfg at /usr/local/etc/haproxy/haproxy.cfg.

Alternatives

HAProxy is powerful, but notoriously difficult to configure. If you don't require HAProxy's functionality per se, consider this similar image for Nginx.

License and Copyright

© Brad Jones LLC, Licensed under GPL-2. Some components MIT license.

docker-haproxy-letsencrypt's People

Contributors

basickarl avatar bradjones1 avatar daniel-illi avatar digitalkaoz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

docker-haproxy-letsencrypt's Issues

ACMEv1 protocol obsolete

Hi,

Just received this email from lets encrypt

Beginning June 1, 2020, we will stop allowing new domains to validate using
the ACMEv1 protocol. You should upgrade to an ACMEv2 compatible client before
then, or certificate issuance will fail. For most people, simply upgrading to
the latest version of your existing client will suffice. You can view the
client list at: https://letsencrypt.org/docs/client-options/

Can you upgrade your container please ?

Error on build (Step 4)

Hi, I forked the repo in order to use my own haproxy.cfg and got an issue during the build.

...
...
Processing triggers for systemd (215-17+deb8u6) ...
Processing triggers for libc-bin (2.19-18+deb8u7) ...
Processing triggers for ca-certificates (20141019+deb8u2) ...
Updating certificates in /etc/ssl/certs... 174 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d....done.
+ apt-get install --no-install-recommends -yqq certbot -t jessie-backports
E: Unable to correct problems, you have held broken packages.
The command '/bin/sh -c buildDeps='curl gcc libc6-dev libpcre3-dev libssl-dev make libreadline-dev'     && set -x     && apt-get update && apt-get install --no-install-recommends -yqq $buildDeps     cron     wget     ca-certificates     curl     patch     python-setuptools     dnsmasq     libssl1.0.0 libpcre3     && apt-get install --no-install-recommends -yqq certbot -t jessie-backports      && wget https://github.com/Supervisor/supervisor/archive/${SUPERVISOR_VERSION}.tar.gz     && tar -xvf ${SUPERVISOR_VERSION}.tar.gz     && cd supervisor-${SUPERVISOR_VERSION} && python setup.py install     && apt-get clean autoclean && apt-get autoremove -y     && rm -rf /var/lib/apt/lists/*' returned a non-zero code: 100

The cause seems to be jessie-backports and certbot installation
Best regards.

Auto-renewal does not work

It seems like the auto-renewal doesn't work. I've got an email from Letsencrypt to renew my current domains.

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.