feat(ollama): install Ollama

This commit is contained in:
Masaki Yatsu
2025-12-03 14:08:39 +09:00
parent ad04d5774a
commit 6c6f0e5aa1
4 changed files with 147 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
ollama:
gpu:
enabled: {{ if eq .Env.OLLAMA_GPU_ENABLED "true" }}true{{ else }}false{{ end }}
type: {{ .Env.OLLAMA_GPU_TYPE }}
number: {{ .Env.OLLAMA_GPU_COUNT }}
models:
# https://ollama.com/search
pull:
{{- $models := .Env.OLLAMA_MODELS | strings.Split "," }}
{{- range $models }}
{{- $model := . | strings.TrimSpace }}
{{- if ne $model "" }}
- {{ $model }}
{{- end }}
{{- end }}
persistentVolume:
enabled: true
size: {{ .Env.OLLAMA_STORAGE_SIZE }}