Docker container returns 400, request hostname is invalid

How do those services talk to each other? Internally directly? It looks like a application error, so maybe one service expects a FQDN instead of just a Docker service name in http host header?

I hope you are not deploying this on a VM directly on the Internet, it’s bad practice to open all those ports, better use Docker network.

Only open ports for frontend or even use a reverse proxy.