fix/updated app templates

This commit is contained in:
biersoeckli
2025-01-07 14:13:37 +00:00
parent 73501349ca
commit 8d6896f215
6 changed files with 18 additions and 1 deletions

View File

@@ -1,5 +1,5 @@
import { z } from "zod";
import { AppDomainModel, AppModel, AppPortModel, AppVolumeModel, RelatedAppDomainModel, RelatedAppPortModel, RelatedAppVolumeModel } from "./generated-zod";
import { AppDomainModel, AppFileMountModel, AppModel, AppPortModel, AppVolumeModel, RelatedAppDomainModel, RelatedAppPortModel, RelatedAppVolumeModel } from "./generated-zod";
import { appSourceTypeZodModel, appTypeZodModel } from "./app-source-info.model";
import { appVolumeTypeZodModel } from "./volume-edit.model";
@@ -33,6 +33,12 @@ export const appTemplateContentZodModel = z.object({
createdAt: z.undefined(),
updatedAt: z.undefined(),
}).array(),
appFileMounts: AppFileMountModel.extend({
id: z.undefined(),
appId: z.undefined(),
createdAt: z.undefined(),
updatedAt: z.undefined(),
}).array(),
appPorts: AppPortModel.extend({
id: z.undefined(),
appId: z.undefined(),

View File

@@ -45,6 +45,7 @@ MYSQL_USER=wordpress
containerMountPath: '/var/lib/mysql',
accessMode: 'ReadWriteOnce'
}],
appFileMounts: [],
appPorts: [{
port: 3306,
}]
@@ -79,6 +80,12 @@ WORDPRESS_TABLE_PREFIX=wp_
containerMountPath: '/var/www/html',
accessMode: 'ReadWriteMany'
}],
appFileMounts: [{
containerMountPath: '/usr/local/etc/php/conf.d/custom.ini',
content: `upload_max_filesize = 100M
post_max_size = 100M
`
}],
appPorts: [{
port: 80,
}]

View File

@@ -55,6 +55,7 @@ export const mariadbAppTemplate: AppTemplateModel = {
containerMountPath: '/var/lib/mysql',
accessMode: 'ReadWriteOnce'
}],
appFileMounts: [],
appPorts: [{
port: 3306,
}]

View File

@@ -48,6 +48,7 @@ export const mongodbAppTemplate: AppTemplateModel = {
containerMountPath: '/data/db',
accessMode: 'ReadWriteOnce'
}],
appFileMounts: [],
appPorts: [{
port: 27017,
}]

View File

@@ -55,6 +55,7 @@ export const mysqlAppTemplate: AppTemplateModel = {
containerMountPath: '/var/lib/mysql',
accessMode: 'ReadWriteOnce'
}],
appFileMounts: [],
appPorts: [{
port: 3306,
}]

View File

@@ -48,6 +48,7 @@ export const postgreAppTemplate: AppTemplateModel = {
containerMountPath: '/var/lib/postgresql',
accessMode: 'ReadWriteOnce'
}],
appFileMounts: [],
appPorts: [{
port: 5432,
}]