Sign inSign up

m21lab/haproxy

By m21lab

•Updated almost 10 years ago

haproxy to be used along with m21lab/letsencrypt in order to use received SSL certificates

Image
1

5.3K

m21lab/haproxy repository overview

Based on https://github.com/ixc/letsencrypt-dockercloud-haproxy⁠

m21lab : Macadamian Innovation Lab, www.macadamian.com⁠

Forked Repo: https://github.com/cnadeau/letsencrypt-dockercloud-haproxy⁠

version: "2"
services:
  haproxy:
    image: m21lab/haproxy:1.6.2
    links:
      - letsencrypt
      - web ## THIS IS THE SERVICE HOSTED BEHIND THE NEW CERTIFICATE
    ports:
      - "80:80"
      - "443:443"
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
    volumes_from:
      - letsencrypt
  letsencrypt:
    image: m21lab/letsencrypt:1.0
    environment:
      - DOMAINS=YOUR_DOMAIN
      - EMAIL=admins@YOUR_DOMAIN
      - LOAD_BALANCER_SERVICE_NAME=haproxy
      # THIS IS CRUCIAL WHEN TESTING to avoid reaching
      # the 5 certificates limit per domain per week. 
      # You'll end up waiting a week before being able 
      # to regenerate a valid cert if you don't backup
      # the once generated
      - OPTIONS=--staging

  web:
    environment:
      - FORCE_SSL=yes
      - VIRTUAL_HOST=http://*,https://*
    image: dockercloud/hello-world:latest

Tag summary

Content type

Image

Digest

Size

15.7 MB

Last updated

almost 10 years ago

docker pull m21lab/haproxy:1.6.2