Skip to content

Commit 31b3610

Browse files
ftardifbsideup
authored andcommitted
start ambassador only if mapping configured (#1328)
1 parent 2fc7c21 commit 31b3610

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

core/src/main/java/org/testcontainers/containers/DockerComposeContainer.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,9 @@ private List<Container> listChildContainers() {
239239
}
240240

241241
private void startAmbassadorContainers() {
242-
ambassadorContainer.start();
242+
if (!ambassadorPortMappings.isEmpty()) {
243+
ambassadorContainer.start();
244+
}
243245
}
244246

245247
private Logger logger() {

0 commit comments

Comments
 (0)