mirror of
https://github.com/Dokploy/dokploy
synced 2025-06-26 18:27:59 +00:00
Merge pull request #314 from Dokploy/fix/add-file-path
fix(template): add missing file path
This commit is contained in:
@@ -227,7 +227,8 @@ export const composeRouter = createTRPCRouter({
|
||||
if (mounts && mounts?.length > 0) {
|
||||
for (const mount of mounts) {
|
||||
await createMount({
|
||||
mountPath: mount.mountPath,
|
||||
filePath: mount.filePath,
|
||||
mountPath: "",
|
||||
content: mount.content,
|
||||
serviceId: compose.composeId,
|
||||
serviceType: "compose",
|
||||
|
||||
@@ -21,7 +21,7 @@ export function generate(schema: Schema): Template {
|
||||
|
||||
const mounts: Template["mounts"] = [
|
||||
{
|
||||
mountPath: "./config.toml",
|
||||
filePath: "config.toml",
|
||||
content: `[app]
|
||||
address = "0.0.0.0:9000"
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@ export function generate(schema: Schema): Template {
|
||||
|
||||
const mounts: Template["mounts"] = [
|
||||
{
|
||||
mountPath: "./clickhouse/clickhouse-config.xml",
|
||||
filePath: "/clickhouse/clickhouse-config.xml",
|
||||
content: `
|
||||
<clickhouse>
|
||||
<logger>
|
||||
@@ -45,7 +45,7 @@ export function generate(schema: Schema): Template {
|
||||
`,
|
||||
},
|
||||
{
|
||||
mountPath: "./clickhouse/clickhouse-user-config.xml",
|
||||
filePath: "/clickhouse/clickhouse-user-config.xml",
|
||||
content: `
|
||||
<clickhouse>
|
||||
<profiles>
|
||||
|
||||
@@ -13,7 +13,7 @@ export interface Schema {
|
||||
export interface Template {
|
||||
envs: string[];
|
||||
mounts?: {
|
||||
mountPath: string;
|
||||
filePath: string;
|
||||
content?: string;
|
||||
}[];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user