mirror of
https://github.com/biersoeckli/QuickStack.git
synced 2026-02-11 22:19:27 -06:00
67 lines
2.0 KiB
TypeScript
67 lines
2.0 KiB
TypeScript
import { Constants } from "@/shared/utils/constants";
|
|
import { AppTemplateModel } from "../../model/app-template.model";
|
|
|
|
export const mariadbAppTemplate: AppTemplateModel = {
|
|
name: "MariaDB",
|
|
iconName: 'mariadb.svg',
|
|
templates: [{
|
|
inputSettings: [
|
|
{
|
|
key: "containerImageSource",
|
|
label: "Container Image",
|
|
value: "mariadb:11",
|
|
isEnvVar: false,
|
|
randomGeneratedIfEmpty: false,
|
|
},
|
|
{
|
|
key: "MYSQL_DATABASE",
|
|
label: "Database Name",
|
|
value: "mariadb",
|
|
isEnvVar: true,
|
|
randomGeneratedIfEmpty: false,
|
|
},
|
|
{
|
|
key: "MYSQL_USER",
|
|
label: "Database User",
|
|
value: "mariadbuser",
|
|
isEnvVar: true,
|
|
randomGeneratedIfEmpty: false,
|
|
},
|
|
{
|
|
key: "MYSQL_PASSWORD",
|
|
label: "Database Passwort",
|
|
value: "",
|
|
isEnvVar: true,
|
|
randomGeneratedIfEmpty: true,
|
|
},
|
|
{
|
|
key: "MYSQL_ROOT_PASSWORD",
|
|
label: "Root Password",
|
|
value: "",
|
|
isEnvVar: true,
|
|
randomGeneratedIfEmpty: true,
|
|
},
|
|
],
|
|
appModel: {
|
|
name: "MariaDb",
|
|
appType: 'MARIADB',
|
|
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: 400,
|
|
containerMountPath: '/var/lib/mysql',
|
|
accessMode: 'ReadWriteOnce'
|
|
}],
|
|
appFileMounts: [],
|
|
appPorts: [{
|
|
port: 3306,
|
|
}]
|
|
}]
|
|
} |