Use network_mode: host so container can reach Ollama on 127.0.0.1
This commit is contained in:
parent
8d3f9a7661
commit
3974010156
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user