From 568e78d3efe968845b1af0773a853edbb2c90c5e Mon Sep 17 00:00:00 2001
From: timothycarambat <rambat1010@gmail.com>
Date: Tue, 19 Mar 2024 09:04:33 -0700
Subject: [PATCH] update Docker readme

---
 docker/HOW_TO_USE_DOCKER.md | 26 ++++++++++----------------
 1 file changed, 10 insertions(+), 16 deletions(-)

diff --git a/docker/HOW_TO_USE_DOCKER.md b/docker/HOW_TO_USE_DOCKER.md
index 9532fea0b..20ae0ccf7 100644
--- a/docker/HOW_TO_USE_DOCKER.md
+++ b/docker/HOW_TO_USE_DOCKER.md
@@ -109,28 +109,22 @@ container rebuilds or pulls from Docker Hub.
 
 Your docker host will show the image as online once the build process is completed. This will build the app to `http://localhost:3001`.
 
-## ⚠️ Vector DB support ⚠️
-
-Out of the box, all vector databases are supported. Any vector databases requiring special configuration are listed below.
-
-### Using local ChromaDB with Dockerized AnythingLLM
+## Common questions and fixes
 
-- Ensure in your `./docker/.env` file that you have
+### Cannot connect to service running on localhost!
 
-```
-#./docker/.env
-...other configs
+If you are in docker and cannot connect to a service running on your host machine running on a local interface or loopback:
 
-VECTOR_DB="chroma"
-CHROMA_ENDPOINT='http://host.docker.internal:8000' # Allow docker to look on host port, not container.
-# CHROMA_API_HEADER="X-Api-Key" // If you have an Auth middleware on your instance.
-# CHROMA_API_KEY="sk-123abc"
+- `localhost`
+- `127.0.0.1`
+- `0.0.0.0`
 
-...other configs
+> [!IMPORTANT]
+> On linux `http://host.docker.internal:xxxx` does not work.
+> Use `http://172.17.0.1:xxxx` instead to emulate this functionality.
 
-```
+Then in docker you need to replace that localhost part with `host.docker.internal`. For example, if running Ollama on the host machine, bound to http://127.0.0.1:11434 you should put `http://host.docker.internal:11434` into the connection URL in AnythingLLM.
 
-## Common questions and fixes
 
 ### API is not working, cannot login, LLM is "offline"?
 
-- 
GitLab