docker run --name=my-proxy -d --rm --network="host" -v /home/spale/haproxy.cfg:/usr/local/etc/haproxy/haproxy.cfg mspasic/haproxy:latest haproxy -f /usr/local/etc/haproxy/haproxy.cfg
listen stats
mode http
bind *:7000
timeout client 1m
timeout connect 10s
timeout server 1m
stats enable
stats uri /
listen gp-cluster
bind 10.0.1.141:5434
mode tcp
timeout client 1m
timeout connect 10s
timeout server 1m
option pgsql-check user smartivodb
server master 10.0.1.1:5434 check port 5434
server standby 10.0.1.4:5434 check port 5434
listen kafka
bind 10.0.1.141:9092
mode tcp
balance roundrobin
no option clitcpka
option forceclose
timeout client 1m
timeout connect 10s
timeout server 1m
timeout check 5s
server kafka1 10.0.1.1:9092 check inter 3s fastinter 1s
server kafka2 10.0.1.4:9092 check inter 3s fastinter 1s
listen consul
bind 10.0.1.141:8500
mode tcp
balance roundrobin
no option clitcpka
option forceclose
timeout client 1m
timeout connect 10s
timeout server 1m
timeout check 5s
server consul1 10.0.1.1:8500 check inter 3s fastinter 1s
server consul2 10.0.1.3:8500 check inter 3s fastinter 1s
server consul3 10.0.1.2:8500 check inter 3s fastinter 1s
Content type
Image
Digest
Size
34.4 MB
Last updated
almost 7 years ago
docker pull mspasic/haproxy