interfaces/ts/data/service.ts

22 lines
521 B
TypeScript
Raw Normal View History

2024-06-12 20:44:13 +00:00
import type { IServiceRessources } from './docker.js';
2024-02-18 19:08:52 +00:00
export interface IService {
2024-06-12 20:44:13 +00:00
id: string;
data: {
name: string;
2024-06-13 08:05:04 +00:00
imageId: string;
2024-06-12 20:44:13 +00:00
environment: { [key: string]: string };
secretBundleId: string;
scaleFactor: number;
balancingStrategy: 'round-robin' | 'least-connections';
ports: {
web: number;
custom?: { [domain: string]: string };
};
resources?: IServiceRessources;
domains: string[];
deploymentIds: string[];
deploymentDirectiveIds: string[];
2024-02-18 19:08:52 +00:00
};
2024-06-12 20:44:13 +00:00
}