@@ -65,18 +65,46 @@ public class DockerComposeContainer<SELF extends DockerComposeContainer<SELF>> i
6565
6666 private List <String > filesInDirectory = new ArrayList <>();
6767
68+ /**
69+ * Creates a new DockerComposeContainer with the specified Docker image, identifier, and a single compose file.
70+ *
71+ * @param image The Docker image to use for the container
72+ * @param identifier A unique identifier for this compose environment
73+ * @param composeFile A Docker Compose configuration file
74+ */
6875 public DockerComposeContainer (DockerImageName image , String identifier , File composeFile ) {
6976 this (image , identifier , Collections .singletonList (composeFile ));
7077 }
7178
79+ /**
80+ * Creates a new DockerComposeContainer with a random identifier using the specified Docker image and compose files.
81+ *
82+ * @param image The Docker image to use for the container
83+ * @param composeFiles A list of Docker Compose configuration files
84+ */
7285 public DockerComposeContainer (DockerImageName image , List <File > composeFiles ) {
7386 this (image , Base58 .randomString (6 ).toLowerCase (), composeFiles );
7487 }
7588
89+ /**
90+ * Creates a new DockerComposeContainer with the specified Docker image, identifier, and compose files.
91+ *
92+ * @param image The Docker image to use for the container
93+ * @param identifier A unique identifier for this compose environment
94+ * @param composeFiles One or more Docker Compose configuration files
95+ */
7696 public DockerComposeContainer (DockerImageName image , String identifier , File ... composeFiles ) {
7797 this (image , identifier , Arrays .asList (composeFiles ));
7898 }
7999
100+ /**
101+ * Creates a new DockerComposeContainer with the specified Docker image, identifier, and compose files.
102+ * This is the primary constructor that all other constructors delegate to.
103+ *
104+ * @param image The Docker image to use for the container
105+ * @param identifier A unique identifier for this compose environment
106+ * @param composeFiles A list of Docker Compose configuration files
107+ */
80108 public DockerComposeContainer (DockerImageName image , String identifier , List <File > composeFiles ) {
81109 this .composeDelegate =
82110 new ComposeDelegate (ComposeDelegate .ComposeVersion .V1 , composeFiles , identifier , COMPOSE_EXECUTABLE , image );
0 commit comments