| 
									
										
										
										
											2024-10-27 19:50:39 +01:00
										 |  |  | import type { IServiceRessources } from './docker.js'; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | export interface IService { | 
					
						
							|  |  |  |   id: string; | 
					
						
							|  |  |  |   data: { | 
					
						
							|  |  |  |     name: string; | 
					
						
							| 
									
										
										
										
											2024-12-14 20:32:17 +01:00
										 |  |  |     description: string; | 
					
						
							| 
									
										
										
										
											2024-10-27 19:50:39 +01:00
										 |  |  |     imageId: string; | 
					
						
							|  |  |  |     imageVersion: string; | 
					
						
							|  |  |  |     environment: { [key: string]: string }; | 
					
						
							|  |  |  |     secretBundleId: string; | 
					
						
							|  |  |  |     scaleFactor: number; | 
					
						
							|  |  |  |     balancingStrategy: 'round-robin' | 'least-connections'; | 
					
						
							|  |  |  |     ports: { | 
					
						
							|  |  |  |       web: number; | 
					
						
							|  |  |  |       custom?: { [domain: string]: string }; | 
					
						
							|  |  |  |     }; | 
					
						
							|  |  |  |     resources?: IServiceRessources; | 
					
						
							|  |  |  |     domains: { | 
					
						
							|  |  |  |       name: string; | 
					
						
							|  |  |  |       port?: number; | 
					
						
							|  |  |  |       protocol?: 'http' | 'https' | 'ssh'; | 
					
						
							|  |  |  |     }[]; | 
					
						
							|  |  |  |     deploymentIds: string[]; | 
					
						
							|  |  |  |   }; | 
					
						
							|  |  |  | } |