@@ -69,18 +69,46 @@ public class DockerComposeContainer<SELF extends DockerComposeContainer<SELF>>
6969
7070 private List <String > filesInDirectory = new ArrayList <>();
7171
72+ /**
73+ * Creates a new DockerComposeContainer with the specified Docker image, identifier, and a single compose file.
74+ *
75+ * @param image The Docker image to use for the container
76+ * @param identifier A unique identifier for this compose environment
77+ * @param composeFile A Docker Compose configuration file
78+ */
7279 public DockerComposeContainer (DockerImageName image , String identifier , File composeFile ) {
7380 this (image , identifier , Collections .singletonList (composeFile ));
7481 }
7582
83+ /**
84+ * Creates a new DockerComposeContainer with a random identifier using the specified Docker image and compose files.
85+ *
86+ * @param image The Docker image to use for the container
87+ * @param composeFiles A list of Docker Compose configuration files
88+ */
7689 public DockerComposeContainer (DockerImageName image , List <File > composeFiles ) {
7790 this (image , Base58 .randomString (6 ).toLowerCase (), composeFiles );
7891 }
7992
93+ /**
94+ * Creates a new DockerComposeContainer with the specified Docker image, identifier, and compose files.
95+ *
96+ * @param image The Docker image to use for the container
97+ * @param identifier A unique identifier for this compose environment
98+ * @param composeFiles One or more Docker Compose configuration files
99+ */
80100 public DockerComposeContainer (DockerImageName image , String identifier , File ... composeFiles ) {
81101 this (image , identifier , Arrays .asList (composeFiles ));
82102 }
83103
104+ /**
105+ * Creates a new DockerComposeContainer with the specified Docker image, identifier, and compose files.
106+ * This is the primary constructor that all other constructors delegate to.
107+ *
108+ * @param image The Docker image to use for the container
109+ * @param identifier A unique identifier for this compose environment
110+ * @param composeFiles A list of Docker Compose configuration files
111+ */
84112 public DockerComposeContainer (DockerImageName image , String identifier , List <File > composeFiles ) {
85113 this .composeDelegate =
86114 new ComposeDelegate (ComposeDelegate .ComposeVersion .V1 , composeFiles , identifier , COMPOSE_EXECUTABLE , image );
0 commit comments