Src Interfaces - Tolfix/dmcd GitHub Wiki

Interfaces

The interface directory contains everything related to interfaces. Every interface starts with I.

CD.ts contains the following.

Interface : ICD

Structure

export interface ICD
{
    name: string;
    image: string;
    env?: Array<ENV>;
    ports?: Array<PORTS>;
    webhookUrl: string;
    status: string;
    restartPolicy: "always" | "never" | "on_failure" | "unless_stopped";
}

Interface : ENV

Structure

export interface ENV
{
    value: string;
    name: string;
}

Interface : PORTS

Structure

export interface PORTS
{
    host: string;
    container: string;
}

Docker.ts contains the following.

Interface : ICreateDockerCompose

Structure

export interface ICreateDockerCompose
{
    name: string;
    image: string;
    restartPolicy: "always" | "never" | "on_failure" | "unless_stopped";
    env?: ENV[];
    ports?: PORTS[];
}
⚠️ **GitHub.com Fallback** ⚠️