fix: add OLLAMA_BASE_URL for openwebui, gitignore .env

Ollama runs on port 11436, not the default 11434. Add explicit
OLLAMA_BASE_URL=http://host.docker.internal:11436 so open-webui
finds the models. Also gitignore .env (holds ANTHROPIC_API_KEY).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Alvis
2026-06-11 05:13:58 +00:00
parent 7ef3ffa00e
commit 808c3ee254
2 changed files with 2 additions and 0 deletions

1
openwebui/.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
.env

View File

@@ -18,6 +18,7 @@ services:
capabilities: [gpu] capabilities: [gpu]
environment: environment:
- ANTHROPIC_API_KEY=${ANTHROPIC_API_KEY} - ANTHROPIC_API_KEY=${ANTHROPIC_API_KEY}
- OLLAMA_BASE_URL=http://host.docker.internal:11436
- OPENAI_API_BASE_URL=http://host.docker.internal:4000/v1 - OPENAI_API_BASE_URL=http://host.docker.internal:4000/v1
- OPENAI_API_KEY=dummy - OPENAI_API_KEY=dummy
# STT — Faster-Whisper large-v3-turbo # STT — Faster-Whisper large-v3-turbo