Use the Dockerized version of AnythingLLM for a much faster and complete startup of AnythingLLM.
- Install Docker on your computer or machine.
git clone
this repo andcd anything-llm
to get to the root directory.cd docker/
cp .env.example .env
to create the.env
file.- Edit
.env
file and update the variables docker-compose up -d --build
to build the image - this will take a few moments.
Your docker host will show the image as online once the build process is completed. This will build the app to http://localhost:3001
.
- To access the full application, visit
http://localhost:3001
in your browser.
-
Upload files from the UI in your Workspace settings
-
To run the collector scripts to grab external data (articles, URLs, etc.)
docker exec -it --workdir=/app/collector anything-llm python main.py
-
To run the collector watch script to process files from the hotdir
docker exec -it --workdir=/app/collector anything-llm python watch.py
- Upload compliant files to
./collector/hotdir
and they will be processed and made available in the UI.
- Update the
./docker/.env
and rundocker-compose up -d --build
to rebuild with new environments.
- The UID and GID are set to 1000 by default. This is the default user in the Docker container and on most host operating systems. If there is a mismatch between your host user UID and GID and what is set in the
.env
file, you may experience permission issues.
Out of the box, all vector databases are supported. Any vector databases requiring special configuration are listed below.
- Ensure in your
./docker/.env
file that you have
#./docker/.env
...other configs
VECTOR_DB="chroma"
CHROMA_ENDPOINT='http://host.docker.internal:8000' # Allow docker to look on host port, not container.
...other configs