mirror of
https://github.com/placeholder-soft/chroma.git
synced 2026-01-12 08:44:18 +08:00
Fixes #1035 ## Description of changes *Summarize the changes made by this PR.* - Improvements & Bug fixes - Default persistent directory isn't `/index_data` it's located at `/chroma/chroma/` [config.py#L85](https://github.com/chroma-core/chroma/blob/main/chromadb/config.py#L85) fixing it in serveur core docker-compose - Removing misleading volume `/index_data` in main docker-compose.yaml file, that clearly induce in error users - Adding comment in main docker-compose.yaml file so that Chroma users won't waste time seeking for this directory path - New functionality Does it introduce a breaking change ? - With this change data will now be persistent for users using `docker-compose.server.example.yml` as it's a exemple file this shouldn't be considered as a breaking change. ## Test plan *How are these changes tested?* - [x] Tests pass locally with `pytest` for python, `yarn test` for js - [x] Start Chroma server with `docker-compose up -d` create a collection, stop Chroma server with `docker-compose down` and start it again `docker-compose up -d`, check the created collection still exists. ## Documentation Changes *Are all docstrings for user-facing APIs updated if required? Do we need to make documentation changes in the [docs repository](https://github.com/chroma-core/docs)?*
23 lines
445 B
YAML
23 lines
445 B
YAML
version: '3.9'
|
|
|
|
networks:
|
|
net:
|
|
driver: bridge
|
|
services:
|
|
server:
|
|
image: ghcr.io/chroma-core/chroma:latest
|
|
volumes:
|
|
# Default configuration for persist_directory in chromadb/config.py
|
|
# Currently it's located in "/chroma/chroma/"
|
|
- chroma_persistent_folder:/chroma/chroma/
|
|
ports:
|
|
- 8000:8000
|
|
networks:
|
|
- net
|
|
|
|
volumes:
|
|
backups:
|
|
driver: local
|
|
chroma_persistent_folder:
|
|
driver: local
|