mirror of
https://github.com/biersoeckli/QuickStack.git
synced 2026-02-10 21:49:19 -06:00
60 lines
1.8 KiB
TypeScript
60 lines
1.8 KiB
TypeScript
import { Constants } from "@/shared/utils/constants";
|
|
import { AppTemplateModel } from "../../model/app-template.model";
|
|
|
|
export const mongodbAppTemplate: AppTemplateModel = {
|
|
name: "MongoDB",
|
|
iconName: 'mongodb.svg',
|
|
templates: [{
|
|
inputSettings: [
|
|
{
|
|
key: "containerImageSource",
|
|
label: "Container Image",
|
|
value: "mongo:7",
|
|
isEnvVar: false,
|
|
randomGeneratedIfEmpty: false,
|
|
},
|
|
{
|
|
key: "MONGO_INITDB_DATABASE",
|
|
label: "Database Name",
|
|
value: "mongodb",
|
|
isEnvVar: true,
|
|
randomGeneratedIfEmpty: false,
|
|
},
|
|
{
|
|
key: "MONGO_INITDB_ROOT_USERNAME",
|
|
label: "Username",
|
|
value: "mongodbuser",
|
|
isEnvVar: true,
|
|
randomGeneratedIfEmpty: false,
|
|
},
|
|
{
|
|
key: "MONGO_INITDB_ROOT_PASSWORD",
|
|
label: "Password",
|
|
value: "",
|
|
isEnvVar: true,
|
|
randomGeneratedIfEmpty: true,
|
|
},
|
|
],
|
|
appModel: {
|
|
name: "MongoDB",
|
|
appType: 'MONGODB',
|
|
sourceType: 'CONTAINER',
|
|
containerImageSource: "",
|
|
ingressNetworkPolicy: Constants.DEFAULT_INGRESS_NETWORK_POLICY_DATABASES,
|
|
egressNetworkPolicy: Constants.DEFAULT_EGRESS_NETWORK_POLICY_DATABASES,
|
|
replicas: 1,
|
|
envVars: ``,
|
|
useNetworkPolicy: true,
|
|
},
|
|
appDomains: [],
|
|
appVolumes: [{
|
|
size: 500,
|
|
containerMountPath: '/data/db',
|
|
accessMode: 'ReadWriteOnce'
|
|
}],
|
|
appFileMounts: [],
|
|
appPorts: [{
|
|
port: 27017,
|
|
}]
|
|
}],
|
|
}; |