def get_next_available_port(containers_info):
    """
    Find next available port to map postgres port to host.
    :param containers_info:
    :return port:
    """
    ports = [container_info.host_port for container_info in containers_info]

    return (max(ports) + 1) if ports else 5433