Skip to content

Commit

Permalink
Update index.ts
Browse files Browse the repository at this point in the history
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"
  • Loading branch information
eloimarquessilva authored Dec 28, 2024
1 parent ad0094e commit 600f42d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions templates/ollama/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ export function generate(input: Input): Output {
name: "data",
mountPath: "/data",
},
{
type: "volume",
name: "ollama",
mountPath: "/root/.ollama",
},
],
},
});
Expand Down

0 comments on commit 600f42d

Please sign in to comment.