haproxy를 사용하여 tomcat 프록시

haproxy를 사용하여 tomcat 프록시

tomcat프록시를 사용하려고 합니다 haproxy. Tomcat과 haproxy는 컨테이너 gis-web 및 web-gateway에 도킹되어 있습니다(둘 다 docker 브리지 네트워크에 추가됨).

sample.warwebapps 내에 애플리케이션을 추가했고 위 tomcat의 샘플 애플리케이션을 볼 수 있습니다.host:8080/sample

이는 프록시를 수행하는 HaProxy 구성의 일부입니다.

frontend http-in
    bind 0.0.0.0:80
    mode http
   
        acl IS_SAMPLE path_beg /sample
    use_backend gis_web if IS_SAMPLE

 backend gis_web
    mode http
    server gis_web_srv gis-web maxconn 1000 check port 8080

일단 설정되면 내 샘플 애플리케이션이 호스트:80/sample에 표시될 것으로 예상합니다.

또한 Docker 로그에 다음 오류가 표시됩니다.

Server gis_web/gis_web_srv is DOWN, reason: Layer4 connection problem, info: "No route to host", check duration: 1001ms.
0 active and 0 backup servers left. 0 sessions active, 0 requeued, 0 remaining in queue.
backend 'gis_web' has no server available!

내가 뭘 잘못했나요? 해당 별칭이 어딘가를 가리키는 경우 gis_web_srv와 관련이 있습니까?

관련 정보