forked from github-starred/komodo
33 lines
698 B
TypeScript
33 lines
698 B
TypeScript
export type Config = {
|
|
core?: CoreOrPeripheryConfig;
|
|
periphery?: CoreOrPeripheryConfig;
|
|
mongo?: {
|
|
url: string;
|
|
startConfig?: StartConfig;
|
|
};
|
|
// registry?: {
|
|
// url: string;
|
|
// startConfig?: StartConfig;
|
|
// };
|
|
};
|
|
|
|
export type CoreOrPeripheryConfig = {
|
|
name: string;
|
|
secretVolume: string; // to mount secrets.json into the container
|
|
sysroot: string;
|
|
port: number;
|
|
restart: string;
|
|
};
|
|
|
|
export type StartConfig = {
|
|
// if this is attached, the cli will start container with this config and add
|
|
name: string;
|
|
port: number;
|
|
volume: string | false;
|
|
restart: string;
|
|
};
|
|
|
|
export type SetConfig = (
|
|
field: keyof Config,
|
|
val: Config[keyof Config]
|
|
) => void; |