Sign inSign up

ghostry/haproxy

By ghostry

Updated over 5 years ago

通用配置的haproxy,负载均衡,tcp反代

Image
0

1.4K

ghostry/haproxy repository overview

docker-haproxy

docker-haproxy

安装docker

curl -fsSL get.docker.com -o get-docker.sh
sh get-docker.sh

sudo usermod -aG docker username

使用

docker container list

docker pull ghostry/haproxy

docker container stop ghaproxy && docker container rm ghaproxy

wget https://raw.githubusercontent.com/easy-docker/haproxy/master/haproxy.cfg

docker run --detach \
    --publish 8388:8388 \
    --publish 8389:8389 \
    --name ghaproxy \
    --restart always \
    --volume $PWD:/usr/local/etc/haproxy \
    ghostry/haproxy

8389管理端口,按需

自己构建

git clone https://github.com/ghostry/docker-haproxy.git
cd docker-haproxy
docker build --no-cache  -t ghostry/haproxy .

Tag summary

Content type

Image

Digest

Size

9 MB

Last updated

over 5 years ago

docker pull ghostry/haproxy