yurtaev - lab4

This commit is contained in:
yurtaev.va
2026-11-06 15:43:25 +03:00
parent ec540a1a72
commit 2a88f717f3
22 changed files with 1627 additions and 42 deletions
+27
View File
@@ -0,0 +1,27 @@
global
maxconn 2048
defaults
mode http
timeout connect 1s
timeout client 30s
timeout server 30s
timeout check 1s
resolvers docker
nameserver dns1 127.0.0.11:53
accepted_payload_size 8192
hold valid 1s
timeout resolve 1s
timeout retry 1s
frontend public
bind :8080
default_backend api
backend api
balance roundrobin
option httpchk GET /health/ready
http-check expect status 200
default-server inter 1s fall 2 rise 2
server-template replica 2 api:8080 check resolvers docker init-addr none