Class DockerComposeFile
java.lang.Object
org.springframework.boot.docker.compose.core.DockerComposeFile
A reference to a Docker Compose file (usually named
compose.yaml).- Since:
- 3.1.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic @Nullable DockerComposeFileFind the Docker Compose file by searching in the given working directory.getFiles()Returns the source Docker Compose files.inthashCode()static DockerComposeFileCreate a newDockerComposeFilefor the givenFile.static DockerComposeFileof(Collection<? extends File> files) Creates a newDockerComposeFilefor the givenfiles.toString()
-
Method Details
-
getFiles
-
equals
-
hashCode
-
toString
-
find
Find the Docker Compose file by searching in the given working directory. Files are considered in the same order thatdocker composeuses, namely:compose.yamlcompose.ymldocker-compose.yamldocker-compose.yml
- Parameters:
workingDirectory- the working directory to search ornullto use the current directory- Returns:
- the located file or
nullif no Docker Compose file can be found
-
of
Create a newDockerComposeFilefor the givenFile.- Parameters:
file- the source file- Returns:
- the Docker Compose file
-
of
Creates a newDockerComposeFilefor the givenfiles.- Parameters:
files- the source files- Returns:
- the Docker Compose file
- Since:
- 3.4.0
-