Fixed docker access to ollama and lollms
This commit is contained in:
parent
84f7f15046
commit
c91b57196d
2 changed files with 20 additions and 6 deletions
21
.env.example
21
.env.example
|
|
@ -6,14 +6,27 @@ PORT=9621
|
|||
WORKING_DIR=/app/data/rag_storage
|
||||
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_HOST=http://localhost:11434
|
||||
LLM_BINDING_HOST=http://host.docker.internal:11434
|
||||
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_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
|
||||
|
||||
# RAG Configuration
|
||||
|
|
|
|||
|
|
@ -15,7 +15,8 @@ services:
|
|||
restart: unless-stopped
|
||||
networks:
|
||||
- lightrag_net
|
||||
|
||||
extra_hosts:
|
||||
- "host.docker.internal:host-gateway"
|
||||
networks:
|
||||
lightrag_net:
|
||||
driver: bridge
|
||||
driver: bridge
|
||||
Loading…
Add table
Reference in a new issue