feat: Allow cognee docker container to access localhost
This commit is contained in:
parent
8e5f2e3684
commit
01ba23c809
2 changed files with 4 additions and 0 deletions
|
|
@ -22,6 +22,7 @@ def get_embedding_engine() -> EmbeddingEngine:
|
|||
return OllamaEmbeddingEngine(
|
||||
model=config.embedding_model,
|
||||
dimensions=config.embedding_dimensions,
|
||||
endpoint=config.embedding_endpoint,
|
||||
max_tokens=config.embedding_max_tokens,
|
||||
huggingface_tokenizer=config.huggingface_tokenizer,
|
||||
)
|
||||
|
|
|
|||
|
|
@ -21,6 +21,9 @@ services:
|
|||
limits:
|
||||
cpus: "2.0"
|
||||
memory: 8GB
|
||||
# Add this so inside the container "host.docker.internal" -> your host machine
|
||||
extra_hosts:
|
||||
- "host.docker.internal:host-gateway"
|
||||
|
||||
# NOTE: Frontend is a work in progress and is not intended to be used by users yet.
|
||||
# If you want to use Cognee with a UI environment you can run the cognee-gui.py script or
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue