Files
mtusi2026lab3/infra/haproxy.cfg
T

29 lines
602 B
INI

global
log stdout format raw local0
defaults
log global
mode http
option httplog
timeout connect 2s
timeout client 10s
timeout server 10s
resolvers docker
nameserver dns 127.0.0.11:53
resolve_retries 3
timeout resolve 1s
timeout retry 1s
hold valid 5s
frontend http_front
bind *:8080
default_backend api_backend
backend api_backend
balance roundrobin
option httpchk
http-check send meth GET uri /health/ready
http-check expect status 200
server-template api 1-10 api:8080 check resolvers docker init-addr libc