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
- Author:
- Moritz Halbritter, Andy Wilkinson, Phillip Webb
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionboolean
static DockerComposeFile
Find the docker compose file by searching in the given working directory.int
hashCode()
static DockerComposeFile
Create a newDockerComposeFile
for 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 compose
uses, namely:compose.yaml
compose.yml
docker-compose.yaml
docker-compose.yml
- Parameters:
workingDirectory
- the working directory to search ornull
to use the current directory- Returns:
- the located file or
null
if no docker compose file can be found
-
of
Create a newDockerComposeFile
for the givenFile
.- Parameters:
file
- the source file- Returns:
- the docker compose file
-