From 600f42d1d246159b299fa48d8fc165ca72d324fa Mon Sep 17 00:00:00 2001 From: Eloi Marques da Silva Date: Fri, 27 Dec 2024 22:26:06 -0300 Subject: [PATCH] Update index.ts When the Ollama service is restarted, the installed models are lost because the location where they are installed is not persisted on the volumes. To prevent this it is necessary to persist the "ollama" volume to the path "/root/.ollama" --- templates/ollama/index.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/templates/ollama/index.ts b/templates/ollama/index.ts index 7a16dab6..d7101525 100644 --- a/templates/ollama/index.ts +++ b/templates/ollama/index.ts @@ -18,6 +18,11 @@ export function generate(input: Input): Output { name: "data", mountPath: "/data", }, + { + type: "volume", + name: "ollama", + mountPath: "/root/.ollama", + }, ], }, });