Interface RunningService
public interface RunningService
Provides details of a running docker compose service.
- Since:
- 3.1.0
- Author:
- Moritz Halbritter, Andy Wilkinson, Phillip Webb
-
Method Summary
Modifier and TypeMethodDescriptionenv()
Return the environment defined for the service.host()
Return the host that can be used to connect to the service.image()
Return the image being used by the service.labels()
Return the labels attached to the service.name()
Return the name of the service.ports()
Return the ports that can be used to connect to the service.
-
Method Details
-
name
String name()Return the name of the service.- Returns:
- the service name
-
image
ImageReference image()Return the image being used by the service.- Returns:
- the service image
-
host
String host()Return the host that can be used to connect to the service.- Returns:
- the service host
-
ports
ConnectionPorts ports()Return the ports that can be used to connect to the service.- Returns:
- the service ports
-
env
Return the environment defined for the service.- Returns:
- the service env
-
labels
Return the labels attached to the service.- Returns:
- the service labels
-