import { App } from 'docker-compose-cdk'
new App(props?: AppProps)
Name | Type | Description |
---|---|---|
props |
AppProps |
No description. |
- Type: AppProps
Name | Description |
---|---|
toString |
Returns a string representation of this construct. |
synth |
No description. |
synthToDir |
No description. |
public toString(): string
Returns a string representation of this construct.
public synth(): SynthMetadata
public synthToDir(outdir: string): SynthToDirMetadata
- Type: string
Name | Description |
---|---|
isConstruct |
Checks if x is a construct. |
import { App } from 'docker-compose-cdk'
App.isConstruct(x: any)
Checks if x
is a construct.
Use this method instead of instanceof
to properly detect Construct
instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the constructs
library on
disk are seen as independent, completely different libraries. As a
consequence, the class Construct
in each copy of the constructs
library
is seen as a different class, and an instance of one class will not test as
instanceof
the other class. npm install
will not create installations
like this, but users may manually symlink construct libraries together or
use a monorepo tool: in those cases, multiple copies of the constructs
library can be accidentally installed, and instanceof
will behave
unpredictably. It is safest to avoid using instanceof
, and using
this type-testing method instead.
- Type: any
Any object.
Name | Type | Description |
---|---|---|
node |
constructs.Node |
The tree node. |
public readonly node: Node;
- Type: constructs.Node
The tree node.
import { Config } from 'docker-compose-cdk'
new Config(scope: Construct, id: string, props: ConfigProps)
Name | Type | Description |
---|---|---|
scope |
constructs.Construct |
No description. |
id |
string |
No description. |
props |
ConfigProps |
No description. |
- Type: constructs.Construct
- Type: string
- Type: ConfigProps
Name | Description |
---|---|
toString |
Returns a string representation of this construct. |
render |
No description. |
public toString(): string
Returns a string representation of this construct.
public render(): object
Name | Description |
---|---|
isConstruct |
Checks if x is a construct. |
fromExternal |
No description. |
import { Config } from 'docker-compose-cdk'
Config.isConstruct(x: any)
Checks if x
is a construct.
Use this method instead of instanceof
to properly detect Construct
instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the constructs
library on
disk are seen as independent, completely different libraries. As a
consequence, the class Construct
in each copy of the constructs
library
is seen as a different class, and an instance of one class will not test as
instanceof
the other class. npm install
will not create installations
like this, but users may manually symlink construct libraries together or
use a monorepo tool: in those cases, multiple copies of the constructs
library can be accidentally installed, and instanceof
will behave
unpredictably. It is safest to avoid using instanceof
, and using
this type-testing method instead.
- Type: any
Any object.
import { Config } from 'docker-compose-cdk'
Config.fromExternal(scope: Construct, id: string, fullQualifiedName: string)
- Type: constructs.Construct
- Type: string
- Type: string
Name | Type | Description |
---|---|---|
node |
constructs.Node |
The tree node. |
fullQualifiedName |
string |
No description. |
name |
string |
No description. |
resourceType |
string |
No description. |
public readonly node: Node;
- Type: constructs.Node
The tree node.
public readonly fullQualifiedName: string;
- Type: string
public readonly name: string;
- Type: string
public readonly resourceType: string;
- Type: string
- Implements: IConfig
import { ConfigBase } from 'docker-compose-cdk'
new ConfigBase(scope: Construct, id: string, props?: ResourceOptions)
Name | Type | Description |
---|---|---|
scope |
constructs.Construct |
No description. |
id |
string |
No description. |
props |
ResourceOptions |
No description. |
- Type: constructs.Construct
- Type: string
- Type: ResourceOptions
Name | Description |
---|---|
toString |
Returns a string representation of this construct. |
render |
No description. |
public toString(): string
Returns a string representation of this construct.
public render(): object
Name | Description |
---|---|
isConstruct |
Checks if x is a construct. |
import { ConfigBase } from 'docker-compose-cdk'
ConfigBase.isConstruct(x: any)
Checks if x
is a construct.
Use this method instead of instanceof
to properly detect Construct
instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the constructs
library on
disk are seen as independent, completely different libraries. As a
consequence, the class Construct
in each copy of the constructs
library
is seen as a different class, and an instance of one class will not test as
instanceof
the other class. npm install
will not create installations
like this, but users may manually symlink construct libraries together or
use a monorepo tool: in those cases, multiple copies of the constructs
library can be accidentally installed, and instanceof
will behave
unpredictably. It is safest to avoid using instanceof
, and using
this type-testing method instead.
- Type: any
Any object.
Name | Type | Description |
---|---|---|
node |
constructs.Node |
The tree node. |
fullQualifiedName |
string |
No description. |
name |
string |
No description. |
resourceType |
string |
No description. |
public readonly node: Node;
- Type: constructs.Node
The tree node.
public readonly fullQualifiedName: string;
- Type: string
public readonly name: string;
- Type: string
public readonly resourceType: string;
- Type: string
import { Network } from 'docker-compose-cdk'
new Network(scope: Construct, id: string, props?: NetworkProps)
Name | Type | Description |
---|---|---|
scope |
constructs.Construct |
No description. |
id |
string |
No description. |
props |
NetworkProps |
No description. |
- Type: constructs.Construct
- Type: string
- Type: NetworkProps
Name | Description |
---|---|
toString |
Returns a string representation of this construct. |
render |
No description. |
public toString(): string
Returns a string representation of this construct.
public render(): object
Name | Description |
---|---|
isConstruct |
Checks if x is a construct. |
fromExternal |
No description. |
import { Network } from 'docker-compose-cdk'
Network.isConstruct(x: any)
Checks if x
is a construct.
Use this method instead of instanceof
to properly detect Construct
instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the constructs
library on
disk are seen as independent, completely different libraries. As a
consequence, the class Construct
in each copy of the constructs
library
is seen as a different class, and an instance of one class will not test as
instanceof
the other class. npm install
will not create installations
like this, but users may manually symlink construct libraries together or
use a monorepo tool: in those cases, multiple copies of the constructs
library can be accidentally installed, and instanceof
will behave
unpredictably. It is safest to avoid using instanceof
, and using
this type-testing method instead.
- Type: any
Any object.
import { Network } from 'docker-compose-cdk'
Network.fromExternal(scope: IConstruct, id: string, fullQualifiedName: string)
- Type: constructs.IConstruct
- Type: string
- Type: string
Name | Type | Description |
---|---|---|
node |
constructs.Node |
The tree node. |
fullQualifiedName |
string |
No description. |
name |
string |
No description. |
resourceType |
string |
No description. |
public readonly node: Node;
- Type: constructs.Node
The tree node.
public readonly fullQualifiedName: string;
- Type: string
public readonly name: string;
- Type: string
public readonly resourceType: string;
- Type: string
- Implements: INetwork
import { NetworkBase } from 'docker-compose-cdk'
new NetworkBase(scope: Construct, id: string, props?: ResourceOptions)
Name | Type | Description |
---|---|---|
scope |
constructs.Construct |
No description. |
id |
string |
No description. |
props |
ResourceOptions |
No description. |
- Type: constructs.Construct
- Type: string
- Type: ResourceOptions
Name | Description |
---|---|
toString |
Returns a string representation of this construct. |
render |
No description. |
public toString(): string
Returns a string representation of this construct.
public render(): object
Name | Description |
---|---|
isConstruct |
Checks if x is a construct. |
import { NetworkBase } from 'docker-compose-cdk'
NetworkBase.isConstruct(x: any)
Checks if x
is a construct.
Use this method instead of instanceof
to properly detect Construct
instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the constructs
library on
disk are seen as independent, completely different libraries. As a
consequence, the class Construct
in each copy of the constructs
library
is seen as a different class, and an instance of one class will not test as
instanceof
the other class. npm install
will not create installations
like this, but users may manually symlink construct libraries together or
use a monorepo tool: in those cases, multiple copies of the constructs
library can be accidentally installed, and instanceof
will behave
unpredictably. It is safest to avoid using instanceof
, and using
this type-testing method instead.
- Type: any
Any object.
Name | Type | Description |
---|---|---|
node |
constructs.Node |
The tree node. |
fullQualifiedName |
string |
No description. |
name |
string |
No description. |
resourceType |
string |
No description. |
public readonly node: Node;
- Type: constructs.Node
The tree node.
public readonly fullQualifiedName: string;
- Type: string
public readonly name: string;
- Type: string
public readonly resourceType: string;
- Type: string
- Implements: IProject
import { Project } from 'docker-compose-cdk'
new Project(scope: Construct, id: string)
Name | Type | Description |
---|---|---|
scope |
constructs.Construct |
No description. |
id |
string |
No description. |
- Type: constructs.Construct
- Type: string
Name | Description |
---|---|
toString |
Returns a string representation of this construct. |
render |
No description. |
public toString(): string
Returns a string representation of this construct.
public render(): object
Name | Description |
---|---|
isConstruct |
Checks if x is a construct. |
of |
No description. |
import { Project } from 'docker-compose-cdk'
Project.isConstruct(x: any)
Checks if x
is a construct.
Use this method instead of instanceof
to properly detect Construct
instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the constructs
library on
disk are seen as independent, completely different libraries. As a
consequence, the class Construct
in each copy of the constructs
library
is seen as a different class, and an instance of one class will not test as
instanceof
the other class. npm install
will not create installations
like this, but users may manually symlink construct libraries together or
use a monorepo tool: in those cases, multiple copies of the constructs
library can be accidentally installed, and instanceof
will behave
unpredictably. It is safest to avoid using instanceof
, and using
this type-testing method instead.
- Type: any
Any object.
import { Project } from 'docker-compose-cdk'
Project.of(construct: IConstruct)
- Type: constructs.IConstruct
Name | Type | Description |
---|---|---|
node |
constructs.Node |
The tree node. |
name |
string |
No description. |
public readonly node: Node;
- Type: constructs.Node
The tree node.
public readonly name: string;
- Type: string
- Implements: IResource
import { Resource } from 'docker-compose-cdk'
new Resource(scope: Construct, id: string, props: ResourceProps)
Name | Type | Description |
---|---|---|
scope |
constructs.Construct |
No description. |
id |
string |
No description. |
props |
ResourceProps |
No description. |
- Type: constructs.Construct
- Type: string
- Type: ResourceProps
Name | Description |
---|---|
toString |
Returns a string representation of this construct. |
render |
No description. |
public toString(): string
Returns a string representation of this construct.
public render(): object
Name | Description |
---|---|
isConstruct |
Checks if x is a construct. |
import { Resource } from 'docker-compose-cdk'
Resource.isConstruct(x: any)
Checks if x
is a construct.
Use this method instead of instanceof
to properly detect Construct
instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the constructs
library on
disk are seen as independent, completely different libraries. As a
consequence, the class Construct
in each copy of the constructs
library
is seen as a different class, and an instance of one class will not test as
instanceof
the other class. npm install
will not create installations
like this, but users may manually symlink construct libraries together or
use a monorepo tool: in those cases, multiple copies of the constructs
library can be accidentally installed, and instanceof
will behave
unpredictably. It is safest to avoid using instanceof
, and using
this type-testing method instead.
- Type: any
Any object.
Name | Type | Description |
---|---|---|
node |
constructs.Node |
The tree node. |
fullQualifiedName |
string |
No description. |
name |
string |
No description. |
resourceType |
string |
No description. |
public readonly node: Node;
- Type: constructs.Node
The tree node.
public readonly fullQualifiedName: string;
- Type: string
public readonly name: string;
- Type: string
public readonly resourceType: string;
- Type: string
import { Service } from 'docker-compose-cdk'
new Service(scope: Construct, id: string, props: ServiceProps)
Name | Type | Description |
---|---|---|
scope |
constructs.Construct |
No description. |
id |
string |
No description. |
props |
ServiceProps |
No description. |
- Type: constructs.Construct
- Type: string
- Type: ServiceProps
Name | Description |
---|---|
toString |
Returns a string representation of this construct. |
render |
No description. |
public toString(): string
Returns a string representation of this construct.
public render(): object
Name | Description |
---|---|
isConstruct |
Checks if x is a construct. |
import { Service } from 'docker-compose-cdk'
Service.isConstruct(x: any)
Checks if x
is a construct.
Use this method instead of instanceof
to properly detect Construct
instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the constructs
library on
disk are seen as independent, completely different libraries. As a
consequence, the class Construct
in each copy of the constructs
library
is seen as a different class, and an instance of one class will not test as
instanceof
the other class. npm install
will not create installations
like this, but users may manually symlink construct libraries together or
use a monorepo tool: in those cases, multiple copies of the constructs
library can be accidentally installed, and instanceof
will behave
unpredictably. It is safest to avoid using instanceof
, and using
this type-testing method instead.
- Type: any
Any object.
Name | Type | Description |
---|---|---|
node |
constructs.Node |
The tree node. |
fullQualifiedName |
string |
No description. |
name |
string |
No description. |
resourceType |
string |
No description. |
dnsNames |
string[] |
No description. |
disabled |
boolean |
No description. |
image |
IDockerImage |
No description. |
replicas |
number |
No description. |
command |
string |
No description. |
configs |
ConfigMapping[] |
No description. |
devices |
DeviceMapping[] |
No description. |
environment |
{[ key: string ]: string} |
No description. |
networks |
NetworkSelection[] |
No description. |
ports |
IPortMapping[] |
No description. |
privileged |
boolean |
No description. |
restart |
RestartPolicy |
No description. |
user |
string | number |
No description. |
volumes |
VolumeMapping[] |
No description. |
public readonly node: Node;
- Type: constructs.Node
The tree node.
public readonly fullQualifiedName: string;
- Type: string
public readonly name: string;
- Type: string
public readonly resourceType: string;
- Type: string
public readonly dnsNames: string[];
- Type: string[]
public readonly disabled: boolean;
- Type: boolean
public readonly image: IDockerImage;
- Type: IDockerImage
public readonly replicas: number;
- Type: number
public readonly command: string;
- Type: string
public readonly configs: ConfigMapping[];
- Type: ConfigMapping[]
public readonly devices: DeviceMapping[];
- Type: DeviceMapping[]
public readonly environment: {[ key: string ]: string};
- Type: {[ key: string ]: string}
public readonly networks: NetworkSelection[];
- Type: NetworkSelection[]
public readonly ports: IPortMapping[];
- Type: IPortMapping[]
public readonly privileged: boolean;
- Type: boolean
public readonly restart: RestartPolicy;
- Type: RestartPolicy
public readonly user: string | number;
- Type: string | number
public readonly volumes: VolumeMapping[];
- Type: VolumeMapping[]
- Implements: IService
import { ServiceBase } from 'docker-compose-cdk'
new ServiceBase(scope: Construct, id: string, props?: ResourceOptions)
Name | Type | Description |
---|---|---|
scope |
constructs.Construct |
No description. |
id |
string |
No description. |
props |
ResourceOptions |
No description. |
- Type: constructs.Construct
- Type: string
- Type: ResourceOptions
Name | Description |
---|---|
toString |
Returns a string representation of this construct. |
render |
No description. |
public toString(): string
Returns a string representation of this construct.
public render(): object
Name | Description |
---|---|
isConstruct |
Checks if x is a construct. |
import { ServiceBase } from 'docker-compose-cdk'
ServiceBase.isConstruct(x: any)
Checks if x
is a construct.
Use this method instead of instanceof
to properly detect Construct
instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the constructs
library on
disk are seen as independent, completely different libraries. As a
consequence, the class Construct
in each copy of the constructs
library
is seen as a different class, and an instance of one class will not test as
instanceof
the other class. npm install
will not create installations
like this, but users may manually symlink construct libraries together or
use a monorepo tool: in those cases, multiple copies of the constructs
library can be accidentally installed, and instanceof
will behave
unpredictably. It is safest to avoid using instanceof
, and using
this type-testing method instead.
- Type: any
Any object.
Name | Type | Description |
---|---|---|
node |
constructs.Node |
The tree node. |
fullQualifiedName |
string |
No description. |
name |
string |
No description. |
resourceType |
string |
No description. |
dnsNames |
string[] |
No description. |
public readonly node: Node;
- Type: constructs.Node
The tree node.
public readonly fullQualifiedName: string;
- Type: string
public readonly name: string;
- Type: string
public readonly resourceType: string;
- Type: string
public readonly dnsNames: string[];
- Type: string[]
import { Stage } from 'docker-compose-cdk'
new Stage(scope: Construct, id: string)
Name | Type | Description |
---|---|---|
scope |
constructs.Construct |
No description. |
id |
string |
No description. |
- Type: constructs.Construct
- Type: string
Name | Description |
---|---|
toString |
Returns a string representation of this construct. |
public toString(): string
Returns a string representation of this construct.
Name | Description |
---|---|
isConstruct |
Checks if x is a construct. |
import { Stage } from 'docker-compose-cdk'
Stage.isConstruct(x: any)
Checks if x
is a construct.
Use this method instead of instanceof
to properly detect Construct
instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the constructs
library on
disk are seen as independent, completely different libraries. As a
consequence, the class Construct
in each copy of the constructs
library
is seen as a different class, and an instance of one class will not test as
instanceof
the other class. npm install
will not create installations
like this, but users may manually symlink construct libraries together or
use a monorepo tool: in those cases, multiple copies of the constructs
library can be accidentally installed, and instanceof
will behave
unpredictably. It is safest to avoid using instanceof
, and using
this type-testing method instead.
- Type: any
Any object.
Name | Type | Description |
---|---|---|
node |
constructs.Node |
The tree node. |
public readonly node: Node;
- Type: constructs.Node
The tree node.
import { Volume } from 'docker-compose-cdk'
new Volume(scope: Construct, id: string)
Name | Type | Description |
---|---|---|
scope |
constructs.Construct |
No description. |
id |
string |
No description. |
- Type: constructs.Construct
- Type: string
Name | Description |
---|---|
toString |
Returns a string representation of this construct. |
render |
No description. |
public toString(): string
Returns a string representation of this construct.
public render(): object
Name | Description |
---|---|
isConstruct |
Checks if x is a construct. |
fromExternal |
No description. |
import { Volume } from 'docker-compose-cdk'
Volume.isConstruct(x: any)
Checks if x
is a construct.
Use this method instead of instanceof
to properly detect Construct
instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the constructs
library on
disk are seen as independent, completely different libraries. As a
consequence, the class Construct
in each copy of the constructs
library
is seen as a different class, and an instance of one class will not test as
instanceof
the other class. npm install
will not create installations
like this, but users may manually symlink construct libraries together or
use a monorepo tool: in those cases, multiple copies of the constructs
library can be accidentally installed, and instanceof
will behave
unpredictably. It is safest to avoid using instanceof
, and using
this type-testing method instead.
- Type: any
Any object.
import { Volume } from 'docker-compose-cdk'
Volume.fromExternal(scope: Construct, id: string, fullQualifiedName: string)
- Type: constructs.Construct
- Type: string
- Type: string
Name | Type | Description |
---|---|---|
node |
constructs.Node |
The tree node. |
fullQualifiedName |
string |
No description. |
name |
string |
No description. |
resourceType |
string |
No description. |
public readonly node: Node;
- Type: constructs.Node
The tree node.
public readonly fullQualifiedName: string;
- Type: string
public readonly name: string;
- Type: string
public readonly resourceType: string;
- Type: string
- Implements: IVolume
import { VolumeBase } from 'docker-compose-cdk'
new VolumeBase(scope: Construct, id: string, props?: ResourceOptions)
Name | Type | Description |
---|---|---|
scope |
constructs.Construct |
No description. |
id |
string |
No description. |
props |
ResourceOptions |
No description. |
- Type: constructs.Construct
- Type: string
- Type: ResourceOptions
Name | Description |
---|---|
toString |
Returns a string representation of this construct. |
render |
No description. |
public toString(): string
Returns a string representation of this construct.
public render(): object
Name | Description |
---|---|
isConstruct |
Checks if x is a construct. |
import { VolumeBase } from 'docker-compose-cdk'
VolumeBase.isConstruct(x: any)
Checks if x
is a construct.
Use this method instead of instanceof
to properly detect Construct
instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the constructs
library on
disk are seen as independent, completely different libraries. As a
consequence, the class Construct
in each copy of the constructs
library
is seen as a different class, and an instance of one class will not test as
instanceof
the other class. npm install
will not create installations
like this, but users may manually symlink construct libraries together or
use a monorepo tool: in those cases, multiple copies of the constructs
library can be accidentally installed, and instanceof
will behave
unpredictably. It is safest to avoid using instanceof
, and using
this type-testing method instead.
- Type: any
Any object.
Name | Type | Description |
---|---|---|
node |
constructs.Node |
The tree node. |
fullQualifiedName |
string |
No description. |
name |
string |
No description. |
resourceType |
string |
No description. |
public readonly node: Node;
- Type: constructs.Node
The tree node.
public readonly fullQualifiedName: string;
- Type: string
public readonly name: string;
- Type: string
public readonly resourceType: string;
- Type: string
import { AppProps } from 'docker-compose-cdk'
const appProps: AppProps = { ... }
Name | Type | Description |
---|---|---|
namingStrategy |
INamingStrategy |
No description. |
public readonly namingStrategy: INamingStrategy;
- Type: INamingStrategy
import { ConfigMapping } from 'docker-compose-cdk'
const configMapping: ConfigMapping = { ... }
Name | Type | Description |
---|---|---|
source |
IConfig |
No description. |
target |
string |
No description. |
gid |
string |
No description. |
mode |
string |
No description. |
uid |
string |
No description. |
public readonly source: IConfig;
- Type: IConfig
public readonly target: string;
- Type: string
public readonly gid: string;
- Type: string
public readonly mode: string;
- Type: string
public readonly uid: string;
- Type: string
import { ConfigProps } from 'docker-compose-cdk'
const configProps: ConfigProps = { ... }
Name | Type | Description |
---|---|---|
content |
string |
No description. |
public readonly content: string;
- Type: string
import { DeviceMapping } from 'docker-compose-cdk'
const deviceMapping: DeviceMapping = { ... }
Name | Type | Description |
---|---|---|
source |
string |
No description. |
target |
string |
No description. |
public readonly source: string;
- Type: string
public readonly target: string;
- Type: string
import { Names } from 'docker-compose-cdk'
const names: Names = { ... }
Name | Type | Description |
---|---|---|
fullQualified |
string |
No description. |
local |
string |
No description. |
public readonly fullQualified: string;
- Type: string
public readonly local: string;
- Type: string
import { NetworkDriverOptions } from 'docker-compose-cdk'
const networkDriverOptions: NetworkDriverOptions = { ... }
Name | Type | Description |
---|---|---|
parent |
string |
No description. |
public readonly parent: string;
- Type: string
import { NetworkIpam } from 'docker-compose-cdk'
const networkIpam: NetworkIpam = { ... }
Name | Type | Description |
---|---|---|
config |
NetworkIpamConfig[] |
No description. |
public readonly config: NetworkIpamConfig[];
- Type: NetworkIpamConfig[]
import { NetworkIpamConfig } from 'docker-compose-cdk'
const networkIpamConfig: NetworkIpamConfig = { ... }
Name | Type | Description |
---|---|---|
gateway |
string |
No description. |
ipRange |
string |
No description. |
subnet |
string |
No description. |
public readonly gateway: string;
- Type: string
public readonly ipRange: string;
- Type: string
public readonly subnet: string;
- Type: string
import { NetworkProps } from 'docker-compose-cdk'
const networkProps: NetworkProps = { ... }
Name | Type | Description |
---|---|---|
driver |
NetworkDriver |
No description. |
driverOptions |
NetworkDriverOptions |
No description. |
ipam |
NetworkIpam |
No description. |
public readonly driver: NetworkDriver;
- Type: NetworkDriver
public readonly driverOptions: NetworkDriverOptions;
- Type: NetworkDriverOptions
public readonly ipam: NetworkIpam;
- Type: NetworkIpam
import { NetworkSelection } from 'docker-compose-cdk'
const networkSelection: NetworkSelection = { ... }
Name | Type | Description |
---|---|---|
network |
INetwork |
No description. |
ipV4Address |
string |
No description. |
public readonly network: INetwork;
- Type: INetwork
public readonly ipV4Address: string;
- Type: string
import { ResourceOptions } from 'docker-compose-cdk'
const resourceOptions: ResourceOptions = { ... }
Name | Type | Description |
---|---|---|
fullQualifiedName |
string |
No description. |
name |
string |
No description. |
public readonly fullQualifiedName: string;
- Type: string
public readonly name: string;
- Type: string
import { ResourceProps } from 'docker-compose-cdk'
const resourceProps: ResourceProps = { ... }
Name | Type | Description |
---|---|---|
fullQualifiedName |
string |
No description. |
name |
string |
No description. |
resourceType |
string |
No description. |
public readonly fullQualifiedName: string;
- Type: string
public readonly name: string;
- Type: string
public readonly resourceType: string;
- Type: string
import { ServiceProps } from 'docker-compose-cdk'
const serviceProps: ServiceProps = { ... }
Name | Type | Description |
---|---|---|
image |
IDockerImage |
No description. |
command |
string |
No description. |
configs |
ConfigMapping[] |
No description. |
devices |
DeviceMapping[] |
No description. |
disabled |
boolean |
No description. |
environment |
{[ key: string ]: string} |
No description. |
networks |
NetworkSelection[] |
No description. |
ports |
IPortMapping[] |
No description. |
privileged |
boolean |
No description. |
replicas |
number |
No description. |
restart |
RestartPolicy |
No description. |
user |
string | number |
No description. |
volumes |
VolumeMapping[] |
No description. |
public readonly image: IDockerImage;
- Type: IDockerImage
public readonly command: string;
- Type: string
public readonly configs: ConfigMapping[];
- Type: ConfigMapping[]
public readonly devices: DeviceMapping[];
- Type: DeviceMapping[]
public readonly disabled: boolean;
- Type: boolean
public readonly environment: {[ key: string ]: string};
- Type: {[ key: string ]: string}
public readonly networks: NetworkSelection[];
- Type: NetworkSelection[]
public readonly ports: IPortMapping[];
- Type: IPortMapping[]
public readonly privileged: boolean;
- Type: boolean
public readonly replicas: number;
- Type: number
public readonly restart: RestartPolicy;
- Type: RestartPolicy
public readonly user: string | number;
- Type: string | number
public readonly volumes: VolumeMapping[];
- Type: VolumeMapping[]
import { SynthMetadata } from 'docker-compose-cdk'
const synthMetadata: SynthMetadata = { ... }
Name | Type | Description |
---|---|---|
projects |
SynthProjectResult[] |
No description. |
public readonly projects: SynthProjectResult[];
- Type: SynthProjectResult[]
import { SynthProjectReference } from 'docker-compose-cdk'
const synthProjectReference: SynthProjectReference = { ... }
Name | Type | Description |
---|---|---|
composeHash |
string |
No description. |
name |
string |
No description. |
public readonly composeHash: string;
- Type: string
public readonly name: string;
- Type: string
import { SynthProjectResult } from 'docker-compose-cdk'
const synthProjectResult: SynthProjectResult = { ... }
Name | Type | Description |
---|---|---|
composeHash |
string |
No description. |
name |
string |
No description. |
compose |
object |
No description. |
public readonly composeHash: string;
- Type: string
public readonly name: string;
- Type: string
public readonly compose: object;
- Type: object
import { SynthToDirMetadata } from 'docker-compose-cdk'
const synthToDirMetadata: SynthToDirMetadata = { ... }
Name | Type | Description |
---|---|---|
projects |
SynthProjectReference[] |
No description. |
public readonly projects: SynthProjectReference[];
- Type: SynthProjectReference[]
import { VolumeMapping } from 'docker-compose-cdk'
const volumeMapping: VolumeMapping = { ... }
Name | Type | Description |
---|---|---|
source |
string | IVolume |
No description. |
target |
string |
No description. |
readonly |
boolean |
No description. |
public readonly source: string | IVolume;
- Type: string | IVolume
public readonly target: string;
- Type: string
public readonly readonly: boolean;
- Type: boolean
- Implements: INamingStrategy
import { DefaultNamingStrategy } from 'docker-compose-cdk'
new DefaultNamingStrategy()
Name | Type | Description |
---|
Name | Description |
---|---|
generateNames |
No description. |
public generateNames(construct: IConstruct): Names
- Type: constructs.IConstruct
import { DockerImage } from 'docker-compose-cdk'
new DockerImage()
Name | Type | Description |
---|
Name | Description |
---|---|
ghcr |
No description. |
hub |
No description. |
import { DockerImage } from 'docker-compose-cdk'
DockerImage.ghcr(userOrOrg: string, image: string, tag?: string)
- Type: string
- Type: string
- Type: string
import { DockerImage } from 'docker-compose-cdk'
DockerImage.hub(image: string, tag?: string)
- Type: string
- Type: string
import { PortMapping } from 'docker-compose-cdk'
new PortMapping()
Name | Type | Description |
---|
Name | Description |
---|---|
http |
No description. |
https |
No description. |
port |
No description. |
import { PortMapping } from 'docker-compose-cdk'
PortMapping.http()
import { PortMapping } from 'docker-compose-cdk'
PortMapping.https()
import { PortMapping } from 'docker-compose-cdk'
PortMapping.port(port: number)
- Type: number
-
Extends: IResource
-
Implemented By: Config, ConfigBase, IConfig
Name | Type | Description |
---|---|---|
node |
constructs.Node |
The tree node. |
fullQualifiedName |
string |
No description. |
name |
string |
No description. |
resourceType |
string |
No description. |
public readonly node: Node;
- Type: constructs.Node
The tree node.
public readonly fullQualifiedName: string;
- Type: string
public readonly name: string;
- Type: string
public readonly resourceType: string;
- Type: string
- Implemented By: IDockerImage
Name | Type | Description |
---|---|---|
image |
string |
No description. |
tag |
string |
No description. |
public readonly image: string;
- Type: string
public readonly tag: string;
- Type: string
- Implemented By: DefaultNamingStrategy, INamingStrategy
Name | Description |
---|---|
generateNames |
No description. |
public generateNames(construct: IConstruct): Names
- Type: constructs.IConstruct
-
Extends: IResource
-
Implemented By: Network, NetworkBase, INetwork
Name | Type | Description |
---|---|---|
node |
constructs.Node |
The tree node. |
fullQualifiedName |
string |
No description. |
name |
string |
No description. |
resourceType |
string |
No description. |
public readonly node: Node;
- Type: constructs.Node
The tree node.
public readonly fullQualifiedName: string;
- Type: string
public readonly name: string;
- Type: string
public readonly resourceType: string;
- Type: string
- Implemented By: IPortMapping
Name | Type | Description |
---|---|---|
container |
number |
No description. |
host |
number |
No description. |
public readonly container: number;
- Type: number
public readonly host: number;
- Type: number
-
Extends: constructs.IConstruct
-
Implemented By: Config, ConfigBase, Network, NetworkBase, Resource, Service, ServiceBase, Volume, VolumeBase, IConfig, INetwork, IResource, IService, IVolume
Name | Description |
---|---|
render |
No description. |
public render(): object
Name | Type | Description |
---|---|---|
node |
constructs.Node |
The tree node. |
fullQualifiedName |
string |
No description. |
name |
string |
No description. |
resourceType |
string |
No description. |
public readonly node: Node;
- Type: constructs.Node
The tree node.
public readonly fullQualifiedName: string;
- Type: string
public readonly name: string;
- Type: string
public readonly resourceType: string;
- Type: string
-
Extends: IResource
-
Implemented By: Service, ServiceBase, IService
Name | Type | Description |
---|---|---|
node |
constructs.Node |
The tree node. |
fullQualifiedName |
string |
No description. |
name |
string |
No description. |
resourceType |
string |
No description. |
public readonly node: Node;
- Type: constructs.Node
The tree node.
public readonly fullQualifiedName: string;
- Type: string
public readonly name: string;
- Type: string
public readonly resourceType: string;
- Type: string
-
Extends: IResource
-
Implemented By: Volume, VolumeBase, IVolume
Name | Type | Description |
---|---|---|
node |
constructs.Node |
The tree node. |
fullQualifiedName |
string |
No description. |
name |
string |
No description. |
resourceType |
string |
No description. |
public readonly node: Node;
- Type: constructs.Node
The tree node.
public readonly fullQualifiedName: string;
- Type: string
public readonly name: string;
- Type: string
public readonly resourceType: string;
- Type: string
Name | Description |
---|---|
BRIDGE |
No description. |
MACVLAN |
No description. |
Name | Description |
---|---|
NO |
No description. |
UNLESS_STOPPED |
No description. |
ALWAYS |
No description. |
ON_FAILURE |
No description. |