Package io.github.gmazzo.docker.compose
Interface DockerComposeCreateSettings
-
- All Implemented Interfaces:
public interface DockerComposeCreateSettings
-
-
Method Summary
Modifier and Type Method Description ConfigurableFileCollectioncomposeFile(Object paths)Adds a source location for the docker-composefile.abstract Property<String>getProjectName()The name of the Docker compose project used to generate container names. abstract DirectoryPropertygetWorkingDirectory()The working directory for the docker-composecommand.abstract ConfigurableFileCollectiongetComposeFile()The source locations for the docker-composefile.abstract ListProperty<String>getOptionsCreate()Optional options to append to the docker compose createcommandDefaults to--remove-orphansto ensure only containers defined in the docker file are kept-
-
Method Detail
-
composeFile
ConfigurableFileCollection composeFile(Object paths)
Adds a source location for the
docker-composefile.
-
getProjectName
abstract Property<String> getProjectName()
The name of the Docker compose project used to generate container names.
Maps to
--project-nameargument
-
getWorkingDirectory
abstract DirectoryProperty getWorkingDirectory()
The working directory for the
docker-composecommand.Defaults to the project's directory.
-
getComposeFile
abstract ConfigurableFileCollection getComposeFile()
The source locations for the
docker-composefile.
-
getOptionsCreate
abstract ListProperty<String> getOptionsCreate()
Optional options to append to the
docker compose createcommandDefaults to
--remove-orphansto ensure only containers defined in the docker file are kept
-
-
-
-