1
0
Fork 0
docker_homework/haproxy/haproxy.cfg

24 lines
514 B
INI

# This is a default haproxy config, for the initial start of haproxy when there are no containers around or docker-gen is starting
global
user haproxy
group haproxy
daemon
maxconn 1024
defaults
balance roundrobin
timeout client 60s
timeout connect 60s
timeout server 60s
frontend http
bind :8080
mode http
use_backend http
backend http
balance leastconn
mode http
server container1 container1:80 check
server container2 container2:80 check