Fixed docker access to ollama and lollms

This commit is contained in:
Saifeddine ALOUI
2025-01-17 01:18:28 +01:00
parent 84f7f15046
commit c91b57196d
2 changed files with 20 additions and 6 deletions

View File

@@ -6,14 +6,27 @@ PORT=9621
WORKING_DIR=/app/data/rag_storage WORKING_DIR=/app/data/rag_storage
INPUT_DIR=/app/data/inputs INPUT_DIR=/app/data/inputs
# LLM Configuration # LLM Configuration (Use valid host. For local services, you can use host.docker.internal)
# Ollama example
LLM_BINDING=ollama LLM_BINDING=ollama
LLM_BINDING_HOST=http://localhost:11434 LLM_BINDING_HOST=http://host.docker.internal:11434
LLM_MODEL=mistral-nemo:latest LLM_MODEL=mistral-nemo:latest
# Embedding Configuration # Lollms example
LLM_BINDING=lollms
LLM_BINDING_HOST=http://host.docker.internal:9600
LLM_MODEL=mistral-nemo:latest
# Embedding Configuration (Use valid host. For local services, you can use host.docker.internal)
# Ollama example
EMBEDDING_BINDING=ollama EMBEDDING_BINDING=ollama
EMBEDDING_BINDING_HOST=http://localhost:11434 EMBEDDING_BINDING_HOST=http://host.docker.internal:11434
EMBEDDING_MODEL=bge-m3:latest
# Lollms example
EMBEDDING_BINDING=lollms
EMBEDDING_BINDING_HOST=http://host.docker.internal:9600
EMBEDDING_MODEL=bge-m3:latest EMBEDDING_MODEL=bge-m3:latest
# RAG Configuration # RAG Configuration

View File

@@ -15,7 +15,8 @@ services:
restart: unless-stopped restart: unless-stopped
networks: networks:
- lightrag_net - lightrag_net
extra_hosts:
- "host.docker.internal:host-gateway"
networks: networks:
lightrag_net: lightrag_net:
driver: bridge driver: bridge