Skip to content

Commit

Permalink
add Docker internal URL to READMEs (#441)
Browse files Browse the repository at this point in the history
add Docker internal URL
  • Loading branch information
timothycarambat authored Dec 13, 2023
1 parent da0cec7 commit cc3343b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

## 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]
> 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!
Expand Down
7 changes: 7 additions & 0 deletions docker/HOW_TO_USE_DOCKER.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

## 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]
> 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!
Expand Down

0 comments on commit cc3343b

Please sign in to comment.