2024-06-05 14:10:44 +02:00
|
|
|
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';
|
2024-06-05 14:10:44 +02:00
|
|
|
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
|
|
|
|
2025-11-24 12:20:30 +00:00
|
|
|
/**
|
|
|
|
|
* Service creation descriptor supporting both string references and class instances.
|
|
|
|
|
* Strings will be resolved to resources internally.
|
|
|
|
|
*/
|
2019-08-16 12:48:40 +02:00
|
|
|
export interface IServiceCreationDescriptor {
|
2019-09-13 14:40:38 +02:00
|
|
|
name: string;
|
2025-11-24 12:20:30 +00:00
|
|
|
/** Image tag (string) or DockerImage instance */
|
|
|
|
|
image: string | DockerImage;
|
2019-09-13 14:40:38 +02:00
|
|
|
labels: interfaces.TLabels;
|
2025-11-24 12:20:30 +00:00
|
|
|
/** Network names (strings) or DockerNetwork instances */
|
|
|
|
|
networks: (string | DockerNetwork)[];
|
2019-08-16 18:32:41 +02:00
|
|
|
networkAlias: string;
|
2025-11-24 12:20:30 +00:00
|
|
|
/** Secret names (strings) or DockerSecret instances */
|
|
|
|
|
secrets: (string | 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
|
|
|
}
|