v0.5.2
This commit is contained in:
6
tests/resources/docker/Docker.haproxy
Normal file
6
tests/resources/docker/Docker.haproxy
Normal file
@@ -0,0 +1,6 @@
|
||||
# docker build -t test-haproxy -f Docker.haproxy .
|
||||
# docker run -it --rm --name haproxy-syntax-check test-haproxy haproxy -c -f /usr/local/etc/haproxy/haproxy.cfg
|
||||
# docker run -d -p 1111:1111 --name some-haproxy --sysctl net.ipv4.ip_unprivileged_port_start=0 test-haproxy
|
||||
|
||||
FROM haproxy:2.3
|
||||
COPY haproxy.cfg /usr/local/etc/haproxy/haproxy.cfg
|
||||
18
tests/resources/docker/haproxy.cfg
Normal file
18
tests/resources/docker/haproxy.cfg
Normal file
@@ -0,0 +1,18 @@
|
||||
global
|
||||
log stdout format raw local0
|
||||
|
||||
defaults
|
||||
log global
|
||||
timeout connect 5000ms
|
||||
timeout client 50000ms
|
||||
timeout server 50000ms
|
||||
|
||||
frontend tcp_in
|
||||
bind *:1111
|
||||
mode tcp
|
||||
option tcplog
|
||||
default_backend tcp_out
|
||||
|
||||
backend tcp_out
|
||||
mode tcp
|
||||
server docker_server host.docker.internal:143 send-proxy
|
||||
Reference in New Issue
Block a user