"No route to host" issue with deploying Haproxy and Apache with docker-compose

Hi,
I meet the same problem. I found it seems to be cause by firewalld. So I disable firewalld and using nftables (for my preference). And it seems work.
You may need to config nat on nftables. But I found that docker seems to help you to do the nat, so I just restart docker.