After the prompts fix, /dm/narrate reached the model call and failed with ConnectError: Connection refused — the container's localhost is not the host, so the default OLLAMA_BASE_URL=http://localhost:11434 hit nothing. Ollama runs on the host (M1's venv smoke reached it because uvicorn ran on the host too; the container never had a route). Add extra_hosts host.docker.internal:host-gateway so the container can reach the host, and document using http://host.docker.internal:11434 in .env.example. Verified a container reaches host Ollama's /api/tags (200). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
23 lines
960 B
Plaintext
23 lines
960 B
Plaintext
# Copy to .env for local dev. NEVER commit the real .env. The client never sees
|
|
# any of these — keys live only in the proxy (charter §4).
|
|
|
|
# Where the proxy sends model calls in dev (Ollama on the homelab).
|
|
# Running the proxy IN DOCKER with Ollama on THIS host? localhost points at the
|
|
# container, not the host — use http://host.docker.internal:11434 instead
|
|
# (docker-compose.yml maps that name via host-gateway). Bare-metal/venv: keep
|
|
# localhost. Homelab Ollama: use its address.
|
|
OLLAMA_BASE_URL=http://localhost:11434
|
|
|
|
# Prod model provider (charter §4). Leave blank in dev.
|
|
REPLICATE_API_TOKEN=
|
|
|
|
# Port the proxy binds. compose / fly.io override this.
|
|
PORT=8000
|
|
|
|
# Narrator model (charter §5 "the good model"). qwen3.x runs with thinking OFF.
|
|
OLLAMA_NARRATOR_MODEL=qwen3.5:latest
|
|
# Per-attempt model-call timeout (seconds).
|
|
OLLAMA_TIMEOUT_SECONDS=30
|
|
# Optional: append call logs (JSON lines, §10) to this file instead of stdout.
|
|
CALL_LOG_PATH=
|