interfaces/ts/data/service.ts

18 lines
461 B
TypeScript
Raw Normal View History

2024-02-18 19:08:52 +00:00
import type { IServiceRessources } from "./docker.js";
export interface IService {
name: string;
2024-06-09 22:48:44 +00:00
imageId: string;
2024-06-09 23:26:07 +00:00
environment: {[key: string]: string};
secretBundleId: string;
2024-06-09 22:48:44 +00:00
scaleFactor: number;
balancingStrategy: 'round-robin' | 'least-connections';
2024-02-18 19:08:52 +00:00
ports: {
web: number;
custom?: { [domain: string]: string };
};
resources?: IServiceRessources;
domains: string[];
2024-05-27 12:34:01 +00:00
deploymentIds: string[];
deploymentDirectiveIds: string[];
2024-02-18 19:08:52 +00:00
}