Skip to content
This repository was archived by the owner on Dec 14, 2023. It is now read-only.

Src Docker

Tolfx edited this page Jul 8, 2021 · 6 revisions

Docker

The docker dicretory contains everything related to docker.

Files

All of the files in the Docker folder.

DockerCompose.ts contains the following.

Paremeters

  • dir : Expects a string which should be the location where our docker-compose.yml is located at.

Returns: Promise<String>
Description: This function runs docker-compose up -d on a docker-compose.yml file.

Paremeters

Returns: String
Description: This functions creates a docker-compose.yml string which can be used to create the file.


DockerDown.ts contains the following.

Paremeters

  • dir : Expects a directory where the docker-compose.yml file is located at

Returns: Boolean
Description: This functions removes the container and it volumes.


Pull.ts contains the following.

Paremeters

  • dir : The location where docker-compose.yml is located at.

Returns: Boolean
Description: This functions pulls the image of the service the docker-compose.yml contains.

Clone this wiki locally