728x90 반응형 haproxy2 socket.io load balancing with HAProxy on Docker Load Balancing with HAProxy on Docker Setup HAProxy + Socket.io + Node HAProxy Config haproxy.cfg 1234567891011121314151617181920212223242526272829303132333435363738394041global maxconn 4096 defaults mode http balance roundrobin option redispatch option forwardfor timeout connect 5s timeout queue 5s timeout client 50s timeout server 50s listen stats bind *:1936 mode http stats enable stats uri /.. 2017. 3. 28. HAProxy with Docker Use HAProxy with Docker 1. Create Dockerfile for HAProxy Build with Docker 12FROM haproxy:1.7 // Set HAProxy versionADD haproxy.cfg /usr/local/etc/haproxy/haproxy.cfgcs 2. Docker build using Dockerfile created1docker build -t my-haproxy .cs 3. After you build Dockerfile, you can find docker images that is my-haproxy 123$ docker imagesREPOSITORY TAG IMAGE ID CREATED SIZEmy-haproxy latest 98f53e22.. 2017. 3. 24. 이전 1 다음 728x90 반응형