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.getFiles()
Returns the source Docker Compose files.int
hashCode()
static DockerComposeFile
Create a newDockerComposeFile
for the givenFile
.static DockerComposeFile
of
(Collection<? extends File> files) Creates a newDockerComposeFile
for the givenfiles
.toString()
-
Method Details
-
getFiles
Returns the source Docker Compose files.- Returns:
- the source Docker Compose files
- Since:
- 3.4.0
-
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
-
of
Creates a newDockerComposeFile
for the givenfiles
.- Parameters:
files
- the source files- Returns:
- the Docker Compose file
- Since:
- 3.4.0
-