docker/ts/interfaces/service.ts

22 lines
603 B
TypeScript
Raw Permalink Normal View History

import * as plugins from '../plugins.js';
2020-03-22 23:53:31 +00:00
2022-10-17 07:36:35 +00:00
import * as interfaces from './index.js';
import { DockerNetwork } from '../classes.network.js';
import { DockerSecret } from '../classes.secret.js';
import { DockerImage } from '../classes.image.js';
2019-08-16 10:48:40 +00:00
export interface IServiceCreationDescriptor {
2019-09-13 12:40:38 +00:00
name: string;
2019-09-13 14:57:21 +00:00
image: DockerImage;
2019-09-13 12:40:38 +00:00
labels: interfaces.TLabels;
2019-08-16 16:21:55 +00:00
networks: DockerNetwork[];
2019-08-16 16:32:41 +00:00
networkAlias: string;
2019-09-12 12:45:36 +00:00
secrets: DockerSecret[];
2019-09-13 20:37:38 +00:00
ports: string[];
2019-09-15 13:08:48 +00:00
accessHostDockerSock?: boolean;
2019-09-19 18:05:56 +00:00
resources?: {
2020-03-22 23:53:31 +00:00
memorySizeMB?: number;
2020-09-30 16:35:24 +00:00
volumeMounts?: plugins.tsclass.container.IVolumeMount[];
2019-09-19 18:05:56 +00:00
};
2019-08-16 10:48:56 +00:00
}