I am building a dev\test environment based on docker using exisiting codebase and i faced a problem.
I have two services in compose file:
version: "3.3" services: manager: image: fo gate: image: fo depends_on: manager
Manager service starts hazelcast server on container’s 127.0.0.1:5701.
Gate service starts hazelcast client listening on container’s 127.0.0.1:5701.
So, it would be great to have a possibility for forwarding gate 127.0.0.1:5701 requests to manager 127.0.0.1:5701 withing compose file for testing puprose withount any code changing. As i understand, docker manages it’s own network configuration with a help of OS built-in tools and for me it is obvious to have such a possibility of forwarding. But i couldn’t find any out-of-box solutions.
May anybody help me with this problem? May be someone knows alternative solution and how to do this inside compose configuration?