Use network_mode: host so container can reach Ollama on 127.0.0.1

This commit is contained in:
Oliver Hofmann 2026-05-07 13:58:26 +02:00
parent 8d3f9a7661
commit 3974010156

View File

@ -2,12 +2,11 @@ services:
llmproxy:
image: mediaeng/llmproxy:latest
restart: unless-stopped
network_mode: host
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