Skip to content
Snippets Groups Projects
Commit 6a09ed22 authored by Pierre Ozoux's avatar Pierre Ozoux
Browse files

give some ❤️

parent 8b6793ef
No related branches found
No related tags found
No related merge requests found
# HAProxy # HAProxy
HAProxy for IndieHosters HAProxy for IndieHosters
# Warning: still experimental, use at your own risk
## What is it? ## What is it?
This repository contains one of the most advanced and libre HAproxy for docker setup that we are aware of. This repository contains one of the most advanced and libre HAproxy for docker setup that we are aware of.
It ships with: It ships with:
- container discovery though docker API (like [smartstack](http://nerds.airbnb.com/smartstack-service-discovery-cloud/)) based on Env var `HOST` (Based on [docker-gen](https://github.com/jwilder/docker-gen)) - container discovery though docker API (like [smartstack](http://nerds.airbnb.com/smartstack-service-discovery-cloud/)) based on Env var `VIRTUAL_HOST` (Based on [docker-gen](https://github.com/jwilder/docker-gen))
- [ocsp](https://en.wikipedia.org/wiki/Online_Certificate_Status_Protocol) - [ocsp](https://en.wikipedia.org/wiki/Online_Certificate_Status_Protocol)
- [letsencrypt](https://letsencrypt.org/) - [letsencrypt](https://letsencrypt.org/)
Once you managed to make this running, each time you add a container with the environment variable `HOST` it will: Each time you add a container with the environment variable `VIRTUAL_HOST` it will:
- generate a valid certificate (if the dns is pointing correctly) - generate a valid certificate (if the dns is pointing correctly)
- serves the OCSP response - serves the OCSP response
- serves your web container with https - serves your web container with https
...@@ -29,12 +27,6 @@ cd haproxy ...@@ -29,12 +27,6 @@ cd haproxy
docker-compose up -d docker-compose up -d
``` ```
The first time, you might need to run letsencrypt-watch in an interactive way to accept TOS and register your account.
Use the following to do so:
```
docker-compose run letsencrypt-watch
```
And profit! And profit!
``` ```
...@@ -59,4 +51,3 @@ You can help us by: ...@@ -59,4 +51,3 @@ You can help us by:
- renewal :) - renewal :)
- docker-swarm compatibility - docker-swarm compatibility
- other backend (etcd/consul...)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment