From 3d8a3f756403aef4f82f632fc1db26379e42deff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Urban?= Date: Tue, 27 Feb 2024 15:37:46 +0100 Subject: [PATCH] docs: update README with new configuration section --- README.md | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 634947f..00b5b3a 100644 --- a/README.md +++ b/README.md @@ -87,10 +87,16 @@ This configuration mounts a local directory (`./data`) to the `/app/data` direct Alternatively, you can use `docker run` to start the container: ```bash -docker run -e PAPERLESS_BASE_URL=http://your-paperless-instance -e PAPERLESS_TOKEN=yourapitoken bjoern5urban/doclytics:latest +docker run --network="host" -e PAPERLESS_BASE_URL=http://your-paperless-instance -e PAPERLESS_TOKEN=yourapitoken bjoern5urban/doclytics:latest ``` - Ensure to replace `http://your-paperless-instance` and `yourapitoken` with your actual Paperless instance URL and API token. +> [!IMPORTANT] +> When using `ollama serve` on the host system, please ensure you set the `OLLAMA_HOST` environment variable to `host.docker.internal`. This setting is crucial for proper communication between your containerized application and the Ollama service running on the host. + +```bash +export OLLAMA_HOST=host.docker.internal + + ## Usage