testcontainers / testcontainers-dotnet-legacy

A .net fork of testcontainers - in early development
MIT License
165 stars 18 forks source link

Support for docker-compose #67

Open SbiCA opened 5 years ago

SbiCA commented 5 years ago

Is your feature request related to a problem? Please describe. I love the approach of having a single container scenario for a test case but there are also scenarios where I'd like to spin up a whole set of containers and therefore use docker-compose as declaration.

Describe the solution you'd like I'd like to spin up a set of containers by specifying a docker-compose.yml similar to the Java version https://www.testcontainers.org/modules/docker_compose/

Describe alternatives you've considered Not sure If there is one

Additional context Also other library authors could benefit from such an approach, I happen to know that https://github.com/Xabaril/AspNetCore.Diagnostics.HealthChecks is using compose and I think it would be great improvement on there development experience (since you don' t have to remember starting the containers in advance ;) )

Cheers

ghost commented 4 years ago

I wrote a package for this a while ago https://github.com/devjoes/DockerComposeFixture