feat(appstore): add service volumes and published ports
This commit is contained in:
+27
@@ -9,6 +9,8 @@ export interface IService {
|
||||
image: string;
|
||||
registry?: string;
|
||||
envVars: Record<string, string>;
|
||||
volumes?: IServiceVolume[];
|
||||
publishedPorts?: IServicePublishedPort[];
|
||||
port: number;
|
||||
domain?: string;
|
||||
containerID?: string;
|
||||
@@ -30,6 +32,27 @@ 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;
|
||||
}
|
||||
|
||||
// Registry types
|
||||
export interface IRegistry {
|
||||
id?: number;
|
||||
@@ -299,6 +322,8 @@ export interface IServiceDeployOptions {
|
||||
image: string;
|
||||
registry?: string;
|
||||
envVars?: Record<string, string>;
|
||||
volumes?: IServiceVolume[];
|
||||
publishedPorts?: IServicePublishedPort[];
|
||||
port: number;
|
||||
domain?: string;
|
||||
autoSSL?: boolean;
|
||||
@@ -397,6 +422,8 @@ export interface IBackupServiceConfig {
|
||||
image: string;
|
||||
registry?: string;
|
||||
envVars: Record<string, string>;
|
||||
volumes?: IServiceVolume[];
|
||||
publishedPorts?: IServicePublishedPort[];
|
||||
port: number;
|
||||
domain?: string;
|
||||
useOneboxRegistry?: boolean;
|
||||
|
||||
Reference in New Issue
Block a user