add Docker internal URL to READMEs (#441)

add Docker internal URL
This commit is contained in:
Timothy Carambat 2023-12-13 11:59:14 -08:00 committed by GitHub
parent da0cec7aa2
commit cc3343ba79
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 0 deletions

View File

@ -94,6 +94,13 @@ This monorepo consists of three main sections:
*AnythingLLM by default embeds text on instance privately [Learn More](/server/storage/models/README.md) *AnythingLLM by default embeds text on instance privately [Learn More](/server/storage/models/README.md)
## Recommended usage with Docker (easy!) ## Recommended usage with Docker (easy!)
> [!IMPORTANT]
> If you are running another service on localhost like Chroma, LocalAi, or LMStudio
> you will need to use http://host.docker.internal:xxxx to access the service from within
> the docker container using AnythingLLM as `localhost:xxxx` will not resolve for the host system.
> eg: Chroma host URL running on localhost:8000 on host machine needs to be http://host.docker.internal:8000
> when used in AnythingLLM.
> [!TIP] > [!TIP]
> It is best to mount the containers storage volume to a folder on your host machine > It is best to mount the containers storage volume to a folder on your host machine
> so that you can pull in future updates without deleting your existing data! > so that you can pull in future updates without deleting your existing data!

View File

@ -6,6 +6,13 @@ Use the Dockerized version of AnythingLLM for a much faster and complete startup
- Install [Docker](https://www.docker.com/) on your computer or machine. - Install [Docker](https://www.docker.com/) on your computer or machine.
## Recommend way to run dockerized AnythingLLM! ## Recommend way to run dockerized AnythingLLM!
> [!IMPORTANT]
> If you are running another service on localhost like Chroma, LocalAi, or LMStudio
> you will need to use http://host.docker.internal:xxxx to access the service from within
> the docker container using AnythingLLM as `localhost:xxxx` will not resolve for the host system.
> eg: Chroma host URL running on localhost:8000 on host machine needs to be http://host.docker.internal:8000
> when used in AnythingLLM.
> [!TIP] > [!TIP]
> It is best to mount the containers storage volume to a folder on your host machine > It is best to mount the containers storage volume to a folder on your host machine
> so that you can pull in future updates without deleting your existing data! > so that you can pull in future updates without deleting your existing data!