mirror of
https://github.com/biersoeckli/QuickStack.git
synced 2026-02-11 05:59:23 -06:00
fix/updated app templates
This commit is contained in:
@@ -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(),
|
||||
|
||||
@@ -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,
|
||||
}]
|
||||
|
||||
@@ -55,6 +55,7 @@ export const mariadbAppTemplate: AppTemplateModel = {
|
||||
containerMountPath: '/var/lib/mysql',
|
||||
accessMode: 'ReadWriteOnce'
|
||||
}],
|
||||
appFileMounts: [],
|
||||
appPorts: [{
|
||||
port: 3306,
|
||||
}]
|
||||
|
||||
@@ -48,6 +48,7 @@ export const mongodbAppTemplate: AppTemplateModel = {
|
||||
containerMountPath: '/data/db',
|
||||
accessMode: 'ReadWriteOnce'
|
||||
}],
|
||||
appFileMounts: [],
|
||||
appPorts: [{
|
||||
port: 27017,
|
||||
}]
|
||||
|
||||
@@ -55,6 +55,7 @@ export const mysqlAppTemplate: AppTemplateModel = {
|
||||
containerMountPath: '/var/lib/mysql',
|
||||
accessMode: 'ReadWriteOnce'
|
||||
}],
|
||||
appFileMounts: [],
|
||||
appPorts: [{
|
||||
port: 3306,
|
||||
}]
|
||||
|
||||
@@ -48,6 +48,7 @@ export const postgreAppTemplate: AppTemplateModel = {
|
||||
containerMountPath: '/var/lib/postgresql',
|
||||
accessMode: 'ReadWriteOnce'
|
||||
}],
|
||||
appFileMounts: [],
|
||||
appPorts: [{
|
||||
port: 5432,
|
||||
}]
|
||||
|
||||
Reference in New Issue
Block a user