Interface ComposeDevServicesBuildTimeConfig
public interface ComposeDevServicesBuildTimeConfig
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enum--rmi option for compose down -
Method Summary
Modifier and TypeMethodDescriptionbuild()Whether to build images before starting containers.booleanenabled()Compose dev service enabled or disabledEnv variables to pass to all Compose instancesfiles()List of file paths relative to the project root for Compose dev service configuration, if not provided will look for compose files in the project rootbooleanWhether to tail container logs to the consoleoptions()List of additional options to pass to compose commandprofiles()Compose profiles to activateName of the compose project, used to discover running containers, if not provided a project name will be generatedWhich images to remove on compose downbooleanWhether to remove volumes on compose downbooleanWhether to reuse the project for tests, when disabled, a new project is created for each test runbooleanWhether to use test containers Ryuk resource reaper to clean up containersscale()Scale configuration for services: Configure the number of instances for specific servicesbooleanWhether to run compose up and start containers at startup, when disabled, services are discovered by project namebooleanWhether to run compose down and stop containers at shutdownTimeout for stopping services, after the timeout the services are forcefully stopped,
-
Method Details
-
enabled
@WithDefault("true") boolean enabled()Compose dev service enabled or disabled -
files
List of file paths relative to the project root for Compose dev service configuration, if not provided will look for compose files in the project root -
projectName
Name of the compose project, used to discover running containers, if not provided a project name will be generated -
profiles
Compose profiles to activate -
options
List of additional options to pass to compose command -
startServices
@WithDefault("true") boolean startServices()Whether to run compose up and start containers at startup, when disabled, services are discovered by project name -
stopServices
@WithDefault("true") boolean stopServices()Whether to run compose down and stop containers at shutdown -
ryukEnabled
@WithDefault("true") boolean ryukEnabled()Whether to use test containers Ryuk resource reaper to clean up containers -
removeVolumes
@WithDefault("true") boolean removeVolumes()Whether to remove volumes on compose down -
removeImages
Optional<ComposeDevServicesBuildTimeConfig.RemoveImages> removeImages()Which images to remove on compose downLocally built images, without custom tags are removed by default.
-
envVariables
Env variables to pass to all Compose instances -
scale
Scale configuration for services: Configure the number of instances for specific services -
followContainerLogs
@WithDefault("false") boolean followContainerLogs()Whether to tail container logs to the console -
build
Whether to build images before starting containers.When not provided, Compose images are built per-service `pull-policy`. When `true`, forces build of all images before starting containers. When `false`, skips re-building images before starting containers.
-
reuseProjectForTests
@WithDefault("false") boolean reuseProjectForTests()Whether to reuse the project for tests, when disabled, a new project is created for each test run -
stopTimeout
Timeout for stopping services, after the timeout the services are forcefully stopped,
-