Clarify Ollama API base URL in docker-compose.md

Updated references to Ollama API base URL in documentation.
This commit is contained in:
Mahdi Amrollahi 2026-01-06 17:21:40 -05:00 committed by GitHub
parent e69485bb72
commit 7a4ade612a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -142,11 +142,13 @@ Change `environment` section in `docker-compose.yml`:
# For Groq (fast, free tier available)
- GROQ_API_KEY=...
# For local Ollama (free, offline)
- OLLAMA_BASE_URL=http://ollama:11434
# For local Ollama docker container (free, offline) --> Virtual machine
- OLLAMA_API_BASE=http://ollama:11434
# For localhost Ollama (free, offline) --> Real machine
# - OLLAMA_API_BASE=http://host.docker.internal:11434
```
### Adding Ollama (Free Local Models)
### Adding Ollama container (Free Local Models)
Add to `docker-compose.yml`:
@ -167,7 +169,7 @@ volumes:
Then update API service:
```yaml
environment:
- OLLAMA_BASE_URL=http://ollama:11434
- OLLAMA_API_BASE=http://ollama:11434
```
Restart and pull a model: