ЛР 3 — БВТ-2302 — Сабитов — на 3

This commit is contained in:
2026-12-01 18:09:13 +03:00
parent 0ab3a341aa
commit d79bf5c481
36 changed files with 1944 additions and 36 deletions
+3
View File
@@ -0,0 +1,3 @@
FROM haproxy:3.0.31-alpine
COPY infra/haproxy.cfg /usr/local/etc/haproxy/haproxy.cfg
RUN haproxy -c -f /usr/local/etc/haproxy/haproxy.cfg
+37
View File
@@ -0,0 +1,37 @@
global
log stdout format raw local0
maxconn 512
defaults
log global
mode http
timeout connect 1s
timeout client 10s
timeout server 5s
timeout check 1s
# Never transparently replay a POST with an unknown outcome.
retries 0
resolvers docker
nameserver dns 127.0.0.11:53
resolve_retries 3
timeout resolve 1s
timeout retry 1s
hold valid 1s
hold obsolete 1s
hold nx 1s
hold timeout 1s
hold refused 1s
hold other 1s
frontend public
bind :8080
default_backend messenger
backend messenger
balance roundrobin
option httpchk GET /health/ready
http-check expect status 200
default-server inter 1s fall 1 rise 1 resolvers docker init-addr last,none
server api1 api1:8080 check
server api2 api2:8080 check