- Normalize OpenAI array-format content to string to fix connection reset - Add error.log with rotating handler for proxy and stream errors - Add global unhandled exception handler returning JSON 500 - Write OLLAMA_URL/DEFAULT_MODEL env vars to DB on startup (reset on restart) - Add extra_hosts to docker-compose.yml for host.docker.internal on Linux - Show warning in admin UI when Ollama URL is unreachable - Return reachable: true/false from /api/ollama-models endpoint
14 lines
358 B
YAML
14 lines
358 B
YAML
services:
|
|
llmproxy:
|
|
image: mediaeng/llmproxy:latest
|
|
restart: unless-stopped
|
|
env_file: .env
|
|
ports:
|
|
- "${PROXY_PORT:-8000}:${PROXY_PORT:-8000}"
|
|
- "127.0.0.1:8001:8001"
|
|
extra_hosts:
|
|
- "host.docker.internal:host-gateway"
|
|
volumes:
|
|
- ./backend/test.db:/app/backend/test.db
|
|
- ./backend/logs:/app/backend/logs
|