feat(appstore): add service volumes and published ports

This commit is contained in:
2026-05-24 07:28:18 +00:00
parent e6ebac76b4
commit 5228eeaa23
26 changed files with 1790 additions and 348 deletions
+27
View File
@@ -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;