docker/ts/interfaces/service.ts

22 lines
603 B
TypeScript
Raw Normal View History

import * as plugins from '../plugins.js';
2020-03-22 23:53:31 +00:00
2022-10-17 09:36:35 +02: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 12:48:40 +02:00
export interface IServiceCreationDescriptor {
2019-09-13 14:40:38 +02:00
name: string;
2019-09-13 16:57:21 +02:00
image: DockerImage;
2019-09-13 14:40:38 +02:00
labels: interfaces.TLabels;
2019-08-16 18:21:55 +02:00
networks: DockerNetwork[];
2019-08-16 18:32:41 +02:00
networkAlias: string;
2019-09-12 14:45:36 +02:00
secrets: DockerSecret[];
2019-09-13 22:37:38 +02:00
ports: string[];
2019-09-15 15:08:48 +02:00
accessHostDockerSock?: boolean;
2019-09-19 20:05:56 +02: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 20:05:56 +02:00
};
2019-08-16 12:48:56 +02:00
}