mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
19 lines
368 B
TypeScript
19 lines
368 B
TypeScript
import DockerCompose from "./DockerCompose";
|
|
|
|
class DockerEnvironment {
|
|
private dockerCompose: DockerCompose;
|
|
|
|
constructor(composeFiles: string[]) {
|
|
this.dockerCompose = new DockerCompose(composeFiles);
|
|
}
|
|
|
|
async start() {
|
|
await this.dockerCompose.up();
|
|
}
|
|
|
|
async stop() {
|
|
await this.dockerCompose.down();
|
|
}
|
|
}
|
|
|
|
export default DockerEnvironment; |