What is Ollama?
Ollama is the simplest way to run open large language models behind an HTTP API: pull a model (Llama, Mistral, Qwen, Gemma, Phi, and many more) and serve it with OpenAI-compatible endpoints, on infrastructure you own. OLLAMA_HOST puts the API on port 5000; there are no external dependencies.
Read the caveat first, because it is the whole story: real inference wants a GPU. This template runs on CPU, where you are limited to small models (~1-3B parameters) and responses are slow. Ollama still runs, and small models are genuinely useful for embeddings, classification, and lightweight chat - just size expectations to CPU. This template is marked experimental for exactly that reason.
It is best used as a building block: keep it private and front it with this catalogue’s litellm for keys, rate limits, and an OpenAI-compatible gateway, or add open-webui for a chat UI. Models are large, so the model volume is the thing to size.
What you get
- Pull and serve open LLMs behind one HTTP API
- OpenAI-compatible endpoints; no external dependencies
- Pairs with litellm (gateway) and open-webui (chat UI)
- OLLAMA_HOST=0.0.0.0:5000 - clean port fit, no wrapper
- Private by default - no auth, so do not expose it raw
- MIT-licensed; GPU strongly recommended
How it runs on Lyngbak
| Service | Role | Public |
|---|---|---|
ollama | model server / API (private, :5000) | no (front with litellm) |
models volume | downloaded model weights (large) | no |
Before you deploy
(none)OLLAMA_HOST is preset to 0.0.0.0:5000 by the template
Sizing and billing
RAM tracks the model: a 3B needs a few GiB, 7-8B more. The model volume is large (~2 GB for 3B, ~5 GB for 7-8B, ~40 GB for 70B) - size it or models re-download on restart. Without a GPU, stick to small models.
A resource is a flat monthly price, with RAM and disk add-ons when the stack needs a little more than a tier, and room for your own apps on a larger one. On Usage Billing each service takes the smallest size that fits it and is billed by the second it runs, so a stopped stack stops costing CPU and RAM. Its 48.83 GiB of volumes cost $0.15 per GiB a month ($7.32/mo) for as long as they exist. One workspace can use both. See pricing
Compared with the managed service
| Service | Plan | Price | Includes |
|---|---|---|---|
| OpenAI API | usage-based | Usage-based | per-token, per call - scales with usage |
Ollama runs open models with no per-token bill; the trade is you provide the compute (a GPU is strongly recommended). Prices from each vendor's pricing page, June 2026.
Run it locally first
The same compose file runs with plain Docker Compose. Clone the template source, copy .env.example to .env, and run docker compose up -d.
Questions
Is it usable without a GPU?
For small models, yes - 1-3B models run on CPU and are useful for embeddings, classification, and light chat, just slowly. For 7B+ at interactive speed you really want a GPU, and this one runs on CPU. That is why this template is experimental.
Should I expose it publicly?
No. Ollama has no authentication, so this template keeps it private. Reach it from your other apps over the internal network, or front it with litellm (in this catalogue) to add API keys, rate limits, and an OpenAI-compatible gateway.
How big is the model storage?
Models are large and live on a volume: roughly 2 GB for a 3B model, 5 GB for 7-8B, and 40 GB for 70B. Size the volume to what you pull, or models re-download after a restart.