feat(appstore): add service volumes and published ports
This commit is contained in:
@@ -12,6 +12,8 @@ export interface IService {
|
||||
image: string;
|
||||
registry?: string;
|
||||
envVars: Record<string, string>;
|
||||
volumes?: IServiceVolume[];
|
||||
publishedPorts?: IServicePublishedPort[];
|
||||
port: number;
|
||||
domain?: string;
|
||||
containerID?: string;
|
||||
@@ -33,12 +35,35 @@ export interface IService {
|
||||
appTemplateVersion?: string;
|
||||
}
|
||||
|
||||
export interface IServiceVolume {
|
||||
name?: string;
|
||||
source?: string;
|
||||
mountPath: string;
|
||||
driver?: string;
|
||||
readOnly?: boolean;
|
||||
backup?: boolean;
|
||||
options?: Record<string, string>;
|
||||
}
|
||||
|
||||
export type TServicePortProtocol = 'tcp' | 'udp';
|
||||
|
||||
export interface IServicePublishedPort {
|
||||
targetPort: number;
|
||||
targetPortEnd?: number;
|
||||
publishedPort?: number;
|
||||
publishedPortEnd?: number;
|
||||
protocol?: TServicePortProtocol;
|
||||
hostIp?: string;
|
||||
}
|
||||
|
||||
export interface IServiceCreate {
|
||||
name: string;
|
||||
image: string;
|
||||
port: number;
|
||||
domain?: string;
|
||||
envVars?: Record<string, string>;
|
||||
volumes?: IServiceVolume[];
|
||||
publishedPorts?: IServicePublishedPort[];
|
||||
useOneboxRegistry?: boolean;
|
||||
registryImageTag?: string;
|
||||
autoUpdateOnPush?: boolean;
|
||||
@@ -57,6 +82,8 @@ export interface IServiceUpdate {
|
||||
port?: number;
|
||||
domain?: string;
|
||||
envVars?: Record<string, string>;
|
||||
volumes?: IServiceVolume[];
|
||||
publishedPorts?: IServicePublishedPort[];
|
||||
}
|
||||
|
||||
export interface IContainerStats {
|
||||
|
||||
Reference in New Issue
Block a user