Files
mesh-catalog/modules/ollama/module.json
T
jochen 685cb1cb1b Declare every module's data; the backup holder measures it (hq ADR 0233)
Backup lines are derived from each module's data section instead of written by hand; the holder
measures declared items, reads the array under them, and deletes a retired item only after a last
restore point; the Go providers say each held consumer's size so an empty replacement is seen.
2026-10-06 16:47:49 +02:00

61 lines
1.2 KiB
JSON

{
"module": "ollama",
"version": "1",
"capabilities": [
"container-runtime"
],
"provides": [
{
"name": "model-access",
"scope": "node"
}
],
"listens": [
{
"name": "api",
"port": 11434,
"protocol": "tcp",
"from": "machine",
"why": "consumers on this machine reaching the local model server's OpenAI-compatible API"
}
],
"serves": {
"model-access": {
"port": 11434,
"model": "llama3.2"
}
},
"data": {
"own": [
{
"id": "models",
"path": "${dir:state}",
"class": "rebuildable",
"backup": "none",
"why": "models, downloaded again, and too large to copy every night"
}
]
},
"resources": [
{
"id": "state",
"type": "directory",
"path": "/services/ollama",
"mode": "0700"
},
{
"id": "server",
"type": "container",
"name": "ollama",
"image": "ollama/ollama@sha256:32931b46719f673c05fdbaa81ccb26da18ea4a1c57590a754874ab28ba269eb2",
"network": "host",
"env": {
"OLLAMA_HOST": "0.0.0.0:11434"
},
"volumes": [
"/services/ollama:/root/.ollama"
]
}
]
}