mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
d09a307ff8
Authelia was using links with href="#" that changed the URL when clicked on. Therefore, this commit removes the href property and apply link style to tags without href property.
32 lines
768 B
TypeScript
32 lines
768 B
TypeScript
import { exec } from '../../helpers/utils/exec';
|
|
import { execSync } from 'child_process';
|
|
|
|
class DockerCompose {
|
|
private commandPrefix: string;
|
|
|
|
constructor(composeFiles: string[]) {
|
|
this.commandPrefix = 'docker-compose ' + composeFiles.map((f) => '-f ' + f).join(' ');
|
|
}
|
|
|
|
async up() {
|
|
return await exec(this.commandPrefix + ' up -d');
|
|
}
|
|
|
|
async down() {
|
|
return await exec(this.commandPrefix + ' down');
|
|
}
|
|
|
|
async restart(service: string) {
|
|
return await exec(this.commandPrefix + ' restart ' + service);
|
|
}
|
|
|
|
async ps() {
|
|
return Promise.resolve(execSync(this.commandPrefix + ' ps').toString('utf-8'));
|
|
}
|
|
|
|
async logs(service: string) {
|
|
await exec(this.commandPrefix + ' logs ' + service)
|
|
}
|
|
}
|
|
|
|
export default DockerCompose; |