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 DockerComposeFileFind the docker compose file by searching in the given working directory.inthashCode()static DockerComposeFileCreate a newDockerComposeFilefor the givenFile.toString()
-
Method Details
-
equals
-
hashCode
public int 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
-