public Integer getExternalPortForService(String serviceName, int port) {
    return composeContainer.getServicePort(serviceName, port);
  }
Get the (ephemeral) exposed port for a service. This is the port that a test would use to
connect.

@param serviceName the service
@param port the port (internal) which was exposed when building the rule
@return the exposed port
geode-assembly/src/acceptanceTest/java/org/apache/geode/rules/DockerComposeRule.java