I've some troubles with configuring websocket communcation which are comming through our reverse proxy server. In my configuration Swarm nodes are behind HAproxy - which is hosted on VM. Now on Swarm master nodes there're traefik containers and our application containers with websocket configuration. Everything works perfectly fine, except all the traffic is going always to just one application container, out of 10 replicas.
I suppose it's the fault of our haproxy server, coz every frame is coiming in with the same src address, just a different port. Is there any possible way to for example loadbalance requests based one on X-FORWARDED-FOR header and stick them to of the running application container?