This commit is contained in:
mdecimus
2024-01-07 15:34:46 +01:00
parent 3a800aff7a
commit d829b56571
9 changed files with 49 additions and 13 deletions

View 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

View 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