代码拉取完成,页面将自动刷新
Felling like supporting me in my projects use donate button. Thank You!
HAProxy docker container million12/haproxy with ALPN and HTTP/2 support.
Please specify tag when deploying for specific version. Example:
million12/haproxy:latest
million12/haproxy:2.1.5
2.4.16
)docker run
will be passed directly to haproxy
command.
For example, if you run docker run [run options] million12/haproxy -n 1000
you pass -n 1000
to haproxy daemon.HAPROXY_CONFIG
env.Variable | Default Settings | Notes |
---|---|---|
HAPROXY_CONFIG |
/etc/haproxy/haproxy.cfg |
If you mount your config to different location, simply edit it. |
HAPROXY_PORTS |
80,443 |
Comma separated ports |
HAPROXY_ADDITIONAL_CONFIG |
Empty | List of file that inotify should monitor for changes divided by space. Example below. Space separated |
HAPROXY_PRE_RESTART_CMD |
Empty | Command to execute before restarting haproxy |
HAPROXY_POST_RESTART_CMD |
Empty | Command to execute after successfully restarting haproxy |
docker run -ti \
-p 80:80 \
-p 443:443 \
million12/haproxy
docker run -d \
-p 80:80 \
-v /my-haproxy.cfg:/etc/haproxy/haproxy.cfg \
million12/haproxy \
-n 10000
Note: in this case config is mounted to its default location, so you don't need to modify
HAPROXY_CONFIG
variable.
docker run -d \
-p 80:80 \
-e HAPROXY_ADDITIONAL_CONFIG='/etc/haproxy/custom1 /etc/haproxy/custom2' \
million12/haproxy
docker run -ti million12/haproxy -vv
The default URL for stats is http://CONTAINER_IP/admin?stats
with username:password ser to admin:admin
.
Author: Marcin ryzy Ryzycki (marcin@m12.io)
Author: Przemyslaw Ozgo (linux@ozgo.info)
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。