Make it possible to obtain a reference of type Container
to services started by Docker Compose
#2302
Milestone
Container
to services started by Docker Compose
#2302
Since
DockerComposeContainer#project
is private, there is currently no way of accessing containers started by Docker Compose.We should add a public API to access them, something like:
We already do something similar here:
testcontainers-java/core/src/main/java/org/testcontainers/containers/DockerComposeContainer.java
Lines 256 to 263 in 500fd74
And store it in:
testcontainers-java/core/src/main/java/org/testcontainers/containers/DockerComposeContainer.java
Line 71 in 500fd74
Which means that the implementation should be a simple look up.
This will also solve #1916 and similar requests.
The text was updated successfully, but these errors were encountered: