@terascope/docker-compose-js / Compose
Class: Compose
Constructors
new Compose()
new Compose(
composeFile
):Compose
Parameters
Parameter | Type |
---|---|
composeFile | string |
Returns
Source
Properties
composeFile
composeFile:
string
Source
Methods
build()
build(
options
?):Promise
<string
>
Parameters
Parameter | Type |
---|---|
options ? | RunOptions |
Returns
Promise
<string
>
Source
create()
create(
services
?,options
?):Promise
<string
>
Parameters
Parameter | Type |
---|---|
services ? | Services |
options ? | RunOptions |
Returns
Promise
<string
>
Source
down()
down(
options
?):Promise
<string
>
Parameters
Parameter | Type |
---|---|
options ? | RunOptions |
Returns
Promise
<string
>
Source
kill()
kill(
services
?,options
?):Promise
<string
>
Parameters
Parameter | Type |
---|---|
services ? | Services |
options ? | RunOptions |
Returns
Promise
<string
>
Source
pause()
pause(
services
?,options
?):Promise
<string
>
Parameters
Parameter | Type |
---|---|
services ? | Services |
options ? | RunOptions |
Returns
Promise
<string
>
Source
port()
port(
service
,privatePort
,options
?):Promise
<string
>
Parameters
Parameter | Type |
---|---|
service | string |
privatePort | string | number |
options ? | RunOptions |
Returns
Promise
<string
>
Source
ps()
ps(
options
?):Promise
<string
>
Parameters
Parameter | Type |
---|---|
options ? | RunOptions |
Returns
Promise
<string
>
Source
pull()
pull(
services
?,options
?):Promise
<string
>
Parameters
Parameter | Type |
---|---|
services ? | Services |
options ? | RunOptions |
Returns
Promise
<string
>
Source
restart()
restart(
services
?,options
?):Promise
<string
>
Parameters
Parameter | Type |
---|---|
services ? | Services |
options ? | RunOptions |
Returns
Promise
<string
>
Source
rm()
rm(
services
?,options
?):Promise
<string
>
Parameters
Parameter | Type |
---|---|
services ? | Services |
options ? | RunOptions |
Returns
Promise
<string
>
Source
runCmd()
runCmd(
command
,options
?,services
?, ...extraParams
?):Promise
<string
>
Parameters
Parameter | Type |
---|---|
command | string |
options ? | RunOptions |
services ? | Services |
...extraParams ? | Arg [] |
Returns
Promise
<string
>
Source
scale()
scale(
services
?,options
?):Promise
<string
>
Parameters
Parameter | Type |
---|---|
services ? | Services |
options ? | RunOptions |
Returns
Promise
<string
>
Source
start()
start(
services
?,options
?):Promise
<string
>
Parameters
Parameter | Type |
---|---|
services ? | Services |
options ? | RunOptions |
Returns
Promise
<string
>
Source
stop()
stop(
services
?,options
?):Promise
<string
>
Parameters
Parameter | Type |
---|---|
services ? | Services |
options ? | RunOptions |
Returns
Promise
<string
>
Source
unpause()
unpause(
services
?,options
?):Promise
<string
>
Parameters
Parameter | Type |
---|---|
services ? | Services |
options ? | RunOptions |
Returns
Promise
<string
>
Source
up()
up(
options
,services
?):Promise
<string
>
Parameters
Parameter | Type |
---|---|
options | RunOptions |
services ? | string | string [] |
Returns
Promise
<string
>
Source
version()
version(
options
?):Promise
<string
>
Parameters
Parameter | Type |
---|---|
options ? | RunOptions |
Returns
Promise
<string
>