Alternate Addresses and Custom Ports

Hi @btburnett3,

Our scenario is as follows:

We intend to run our tests through the ‘Build Validation’ feature of Azure Devops (Git branch policies and settings - Azure Repos | Microsoft Learn validation);

Tests are running with the support of TestContainers (GitHub - testcontainers/testcontainers-dotnet: A library to support tests with throwaway instances of Docker containers for all compatible .NET Standard versions.)

The service being tested, at first, is not available in a container and runs with the asp.net core memory testing feature (ASP.NET documentation | Microsoft Learn core / test / integration-tests? view = aspnetcore-3.1)

As the tests will be executed on a build server and it can receive several execution requests, I thought about the need to use random ports for this.

Still, I found the approach presented with the docker-compose and couchbasefakeit scenario very interesting, could you please give an example?

Thank you very much,
Israel Santiago