@Generated(value="jsii-pacmak/1.47.0 (build 86d2c33)", date="2021-12-20T00:39:28.388Z") @Stability(value=Experimental) public class DockerCompose extends Component
| Modifier and Type | Class and Description |
|---|---|
static class |
DockerCompose.Builder
(experimental) A fluent builder for
DockerCompose. |
| Modifier | Constructor and Description |
|---|---|
protected |
DockerCompose(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
DockerCompose(software.amazon.jsii.JsiiObjectRef objRef) |
|
DockerCompose(Project project) |
|
DockerCompose(Project project,
DockerComposeProps props) |
| Modifier and Type | Method and Description |
|---|---|
DockerComposeService |
addService(String serviceName,
DockerComposeServiceDescription description)
(experimental) Add a service to the docker-compose file.
|
static IDockerComposeVolumeBinding |
bindVolume(String sourcePath,
String targetPath)
(experimental) Create a bind volume that binds a host path to the target path in the container.
|
static IDockerComposeVolumeBinding |
namedVolume(String volumeName,
String targetPath)
(experimental) Create a named volume and mount it to the target path.
|
static IDockerComposeVolumeBinding |
namedVolume(String volumeName,
String targetPath,
DockerComposeVolumeConfig options)
(experimental) Create a named volume and mount it to the target path.
|
static DockerComposeServicePort |
portMapping(Number publishedPort,
Number targetPort)
(experimental) Create a port mapping.
|
static DockerComposeServicePort |
portMapping(Number publishedPort,
Number targetPort,
DockerComposePortMappingOptions options)
(experimental) Create a port mapping.
|
static IDockerComposeServiceName |
serviceName(String serviceName)
(experimental) Depends on a service name.
|
getProject, postSynthesize, preSynthesize, synthesizejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected DockerCompose(software.amazon.jsii.JsiiObjectRef objRef)
protected DockerCompose(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental)
public DockerCompose(@NotNull
Project project,
@Nullable
DockerComposeProps props)
project - This parameter is required.props - @Stability(value=Experimental)
public DockerCompose(@NotNull
Project project)
project - This parameter is required.@Stability(value=Experimental) @NotNull public static IDockerComposeVolumeBinding bindVolume(@NotNull String sourcePath, @NotNull String targetPath)
sourcePath - Host path name. This parameter is required.targetPath - Target path name. This parameter is required.@Stability(value=Experimental) @NotNull public static IDockerComposeVolumeBinding namedVolume(@NotNull String volumeName, @NotNull String targetPath, @Nullable DockerComposeVolumeConfig options)
If you use this named volume in several services, the volume will be shared. In this case, the volume configuration of the first-provided options are used.
volumeName - Name of the volume. This parameter is required.targetPath - Target path. This parameter is required.options - volume configuration (default: docker compose defaults).@Stability(value=Experimental) @NotNull public static IDockerComposeVolumeBinding namedVolume(@NotNull String volumeName, @NotNull String targetPath)
If you use this named volume in several services, the volume will be shared. In this case, the volume configuration of the first-provided options are used.
volumeName - Name of the volume. This parameter is required.targetPath - Target path. This parameter is required.@Stability(value=Experimental) @NotNull public static DockerComposeServicePort portMapping(@NotNull Number publishedPort, @NotNull Number targetPort, @Nullable DockerComposePortMappingOptions options)
publishedPort - Published port number. This parameter is required.targetPort - Container's port number. This parameter is required.options - Port mapping options.@Stability(value=Experimental) @NotNull public static DockerComposeServicePort portMapping(@NotNull Number publishedPort, @NotNull Number targetPort)
publishedPort - Published port number. This parameter is required.targetPort - Container's port number. This parameter is required.@Stability(value=Experimental) @NotNull public static IDockerComposeServiceName serviceName(@NotNull String serviceName)
serviceName - This parameter is required.@Stability(value=Experimental) @NotNull public DockerComposeService addService(@NotNull String serviceName, @NotNull DockerComposeServiceDescription description)
serviceName - name of the service. This parameter is required.description - a service description. This parameter is required.Copyright © 2021. All rights reserved.