Update README.md
This commit is contained in:
parent
a41e84df08
commit
87b7b81994
1 changed files with 6 additions and 5 deletions
11
README.md
11
README.md
|
|
@ -2,14 +2,14 @@
|
||||||
|
|
||||||
This Docker image will create dynamically the `haproxy.cfg` based on very simple Yaml.
|
This Docker image will create dynamically the `haproxy.cfg` based on very simple Yaml.
|
||||||
|
|
||||||
## Features
|
# Features
|
||||||
|
|
||||||
- Enable or disable Stats on port 1936 with custom password
|
- Enable or disable Stats on port 1936 with custom password
|
||||||
- Simple mapping host => host:port
|
- Simple mapping host => host:port
|
||||||
- Simple redirect host => host:port
|
- Simple redirect host => host:port
|
||||||
|
|
||||||
|
|
||||||
## Basic Usage
|
# Basic Usage
|
||||||
|
|
||||||
Create a yaml file in your machine called `easyconfig.cfg` and put the contents:
|
Create a yaml file in your machine called `easyconfig.cfg` and put the contents:
|
||||||
|
|
||||||
|
|
@ -48,7 +48,7 @@ docker run \
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## Mapping custom .cfg files
|
# Mapping custom .cfg files
|
||||||
|
|
||||||
Just create a folder and put files with the extension .cfg. and map the volume to the container.
|
Just create a folder and put files with the extension .cfg. and map the volume to the container.
|
||||||
This will concatenate your config into the main haproxy.cfg
|
This will concatenate your config into the main haproxy.cfg
|
||||||
|
|
@ -69,7 +69,7 @@ docker run \
|
||||||
-byjg/easy-haproxy -c -f /etc/haproxy/haproxy.cfg
|
-byjg/easy-haproxy -c -f /etc/haproxy/haproxy.cfg
|
||||||
```
|
```
|
||||||
|
|
||||||
## Docker Compose
|
# Docker Compose
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
version: "3.4"
|
version: "3.4"
|
||||||
|
|
@ -84,8 +84,9 @@ services:
|
||||||
- 1936:1936
|
- 1936:1936
|
||||||
```
|
```
|
||||||
|
|
||||||
## Build
|
# Build
|
||||||
|
|
||||||
```
|
```
|
||||||
docker build -t byjg/easy-haproxy .
|
docker build -t byjg/easy-haproxy .
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue