How to add additional docker-compose files to a .NET solution?

I would like to have multiple docker-compose files; for instance:

  • docker-compose which runs the app (all the services);
  • docker-compose-integration-tests which runs all the services and test projects for integration test (can use different database compared to docker-compose).

Now the question is, how do add the second docker-compose file?

Visual Studio 2019 does not seem to support adding more than one docker-compose.

I can manually create different .dcproj, .dcproj.user, and .yml files, and manually generate UUID for each, and then manually add them to .sln file. However, that does not seam a “neat” solution to me. Hence, I am wondering if there is any better/recommended way of doing this?

Source: StackOverflow