We have bunch of services using docker compose. The services have a common network and are able to communicate with each other. We also have port bindings on the services which we access via HOST ports.
We now want to connect to a host port from the containers which has a tunnel into another server. We get a connection refused while connecting to the host port. Cannot use the port binding since the port is already in use on the hist side.
This seems to be a network/firewall issue on the host. Looked at iptables, which may be dropping the connection. We do not want to add the rules to firewall. Instead would like to configure via docker compose if there is any configuration which allows. The host is a linux ubuntu distribution.
Appreciate any inputs or feedback.