docker/ts/interfaces/service.ts

22 lines
609 B
TypeScript
Raw Normal View History

2020-03-22 23:53:31 +00:00
import * as plugins from '../docker.plugins';
2019-08-16 10:48:56 +00:00
import * as interfaces from './';
2019-08-16 16:21:55 +00:00
import { DockerNetwork } from '../docker.classes.network';
2019-09-12 12:45:36 +00:00
import { DockerSecret } from '../docker.classes.secret';
2019-09-13 14:57:21 +00:00
import { DockerImage } from '../docker.classes.image';
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;
volumeMounts: plugins.tsclass.container.IVolumeMount[]
2019-09-19 18:05:56 +00:00
};
2019-08-16 10:48:56 +00:00
}