This repository provides an example setup for running the Chroma service using Docker Compose.
- Docker
- Docker Compose
-
Clone this repository:
git clone https://github.com/hcss-utils/chroma-docker.git cd chroma-docker
-
Create a
.env
file with the following content:CHROMA_SERVER_AUTHN_CREDENTIALS="8585d84727f08b0d" CHROMA_SERVER_AUTHN_PROVIDER="chromadb.auth.token_authn.TokenAuthenticationServerProvider"
-
Ensure the necessary port (8007) is open in your firewall settings.
Run the following command to start the service:
docker-compose up -d
The Chroma service will be available on port 8007 of your host machine.
docker-compose.yml
: Docker Compose configuration for the Chroma service..env
: Environment variables for authentication (not included in the repository, you need to create this file).test_connection.py
: Script to test the connection and verify the service endpoints.