mirror of
https://github.com/Dokploy/dokploy
synced 2025-06-26 18:27:59 +00:00
fix(template): add missing file path
This commit is contained in:
@@ -82,7 +82,7 @@ export const AddVolumes = ({
|
|||||||
defaultValues: {
|
defaultValues: {
|
||||||
type: serviceType === "compose" ? "file" : "bind",
|
type: serviceType === "compose" ? "file" : "bind",
|
||||||
hostPath: "",
|
hostPath: "",
|
||||||
mountPath: serviceType === "compose" ? "/" : "",
|
mountPath: "",
|
||||||
},
|
},
|
||||||
resolver: zodResolver(mySchema),
|
resolver: zodResolver(mySchema),
|
||||||
});
|
});
|
||||||
@@ -330,7 +330,6 @@ export const AddVolumes = ({
|
|||||||
/>
|
/>
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
{serviceType !== "compose" && (
|
|
||||||
<FormField
|
<FormField
|
||||||
control={form.control}
|
control={form.control}
|
||||||
name="mountPath"
|
name="mountPath"
|
||||||
@@ -345,7 +344,6 @@ export const AddVolumes = ({
|
|||||||
</FormItem>
|
</FormItem>
|
||||||
)}
|
)}
|
||||||
/>
|
/>
|
||||||
)}
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
|||||||
@@ -227,6 +227,7 @@ export const composeRouter = createTRPCRouter({
|
|||||||
if (mounts && mounts?.length > 0) {
|
if (mounts && mounts?.length > 0) {
|
||||||
for (const mount of mounts) {
|
for (const mount of mounts) {
|
||||||
await createMount({
|
await createMount({
|
||||||
|
filePath: mount.filePath,
|
||||||
mountPath: mount.mountPath,
|
mountPath: mount.mountPath,
|
||||||
content: mount.content,
|
content: mount.content,
|
||||||
serviceId: compose.composeId,
|
serviceId: compose.composeId,
|
||||||
|
|||||||
@@ -13,6 +13,7 @@ export interface Schema {
|
|||||||
export interface Template {
|
export interface Template {
|
||||||
envs: string[];
|
envs: string[];
|
||||||
mounts?: {
|
mounts?: {
|
||||||
|
filePath: string;
|
||||||
mountPath: string;
|
mountPath: string;
|
||||||
content?: string;
|
content?: string;
|
||||||
}[];
|
}[];
|
||||||
|
|||||||
Reference in New Issue
Block a user