Closed plebcity closed 1 year ago
This is because ComposeV2 names the containers with a dash, while testcontainer builds them with an underscore. A similar problem has already been discussed here #4546
Closing as duplicated of https://github.com/testcontainers/testcontainers-java/issues/4565
Module
Core
Testcontainers version
1.17.6
Using the latest Testcontainers version?
Yes
Host OS
MacOS
Host Arch
x86
Docker version
What happened?
I'm trying to start 3 services that are defined in a docker-compose file. I need the port of 1 of those services (ba-gateway). That service will try to restart until another service (iam) has started. No matter what I try testcontainers doesn't seem to wait for the container to be ready. In the logs you can clearly see that is has started the container with the exact same name but a couple milliseconds later it can't find that container.
See test setup below:
Relevant log output
Additional Information
No response