global log stdout format raw local0 defaults mode http log global # Never log raw URLs, query strings, headers or request bodies. log-format "ingress status=%ST bytes=%B backend=%b server=%s termination=%tsc" option forwardfor timeout connect 1s timeout client 30s timeout server 10s timeout check 2s retries 2 resolvers docker nameserver dns 127.0.0.11:53 resolve_retries 3 timeout resolve 1s timeout retry 1s hold valid 2s hold obsolete 2s frontend https bind :8443 ssl crt /run/secrets/ingress.pem ssl-min-ver TLSv1.2 default_backend api frontend container_health bind 127.0.0.1:8404 http-request deny unless { path -i /health/ready } { method GET } default_backend api backend api balance roundrobin option httpchk http-check send meth GET uri /health/ready ver HTTP/1.1 hdr Host localhost http-check expect status 200 default-server check inter 2s fall 1 rise 2 resolvers docker resolve-prefer ipv4 init-addr libc,none server api-a api-a:8444 ssl verify required ca-file /run/secrets/ca.crt crt /run/secrets/lb.pem verifyhost api-a server api-b api-b:8444 ssl verify required ca-file /run/secrets/ca.crt crt /run/secrets/lb.pem verifyhost api-b