feat: Allow cognee docker container to access localhost

This commit is contained in:
Igor Ilic 2025-04-03 12:12:54 +02:00
parent 8e5f2e3684
commit 01ba23c809
2 changed files with 4 additions and 0 deletions

View file

@ -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,
)

View file

@ -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