53 lines
2.4 KiB
Markdown
53 lines
2.4 KiB
Markdown
# EasyHAProxy
|
|
|
|
[](http://opensource.byjg.com)
|
|
[](https://github.com/byjg/docker-easy-haproxy/actions/workflows/build.yml)
|
|
[](https://github.com/byjg/docker-easy-haproxy/)
|
|
[](https://opensource.byjg.com/opensource/licensing.html)
|
|
[](https://github.com/byjg/docker-easy-haproxy/releases/)
|
|
|
|

|
|
|
|
## Service discovery for HAProxy
|
|
|
|
The main objective of EasyHAProxy is dynamically create the `haproxy.cfg` based on the labels defined in docker containers.
|
|
|
|
EasyHAProxy can detect and configure automatically HAProxy on the folowing platforms:
|
|
|
|
- Docker
|
|
- Docker Swarm
|
|
- Kubernetes
|
|
|
|
## Features
|
|
|
|
EasyHAProxy will discover the services based on the Docker Tags of the running containers in a Docker host or Docker Swarm cluster and dynamically set up the `haproxy.cfg`. Below, EasyHAProxy main features:
|
|
|
|
- Use Letsencrypt with HAProxy.
|
|
- Set your custom SSL certificates
|
|
- Balance traffic between multiple replicas
|
|
- Set SSL with three different levels of validations and according to the most recent definitions.
|
|
- Setup HAProxy to listen to TCP.
|
|
- Add redirects.
|
|
- Enable/disable Stats on port 1936 with a custom password.
|
|
- Enable/disable custom errors.
|
|
|
|
Also, it is possible to set up HAProxy from a simple Yaml file instead of creating `haproxy.cfg` file.
|
|
|
|
## How It Works?
|
|
|
|
You don't need to change your current infrastructure and don't need to learn the HAProxy configuration.
|
|
|
|
You need run the EasyHAProxy container, add some labels to your existing container and EasyHAProxy will
|
|
automatically detect them and setup HAProxy for you.
|
|
|
|
## Detailed Instructions
|
|
|
|
For detailed instructions on how to use EasyHAProxy follow the instructions for the platform you want to use:
|
|
|
|
| Kubernetes | Docker Swarm | Docker | Static
|
|
|------------|--------------|--------|---------
|
|
| [](docs/kubernetes.md) | [](docs/swarm.md) | [](docs/docker.md) | [](docs/static.md)
|
|
|
|
|
|
----
|
|
[Open source ByJG](http://opensource.byjg.com)
|