A reference to the running child_process attached to the container
A name for the database inside the container
expose a public init function bound to this
A name for identifying the container
The password for the user account
The external port which will forward to 5432
Whether the container is running or dead
expose a public stop function bound to this
The user account who will own the database
Outputs the basic connection parameters needed to connect to the database from TypeORM. Formatted to be passed into the contstructor of the ConfigService
Spawns a child process attached to the call to 'container run'.
resolves once the container is running, or rejects if there is an error.
stops the running container 'docker container stop'.
resolves once the container is stopped, or rejects if there is an error stopping it
Generated using TypeDoc
Provides a simple API for starting and stopping a single database container, using Node's child_process API to pass commands to the docker CLI. As such, this requires docker to be running on the machine, and requires the parent of the node process to have permission to interact with it.