mirror of
https://github.com/chroma-core/chroma.git
synced 2026-10-28 17:05:07 +08:00
## Description of changes *Summarize the changes made by this PR.* - Improvements & Bug fixes - Added persistent volume in all docker compose files. The advantage is that by default user's data is not lost when `docker compose down` is executed unless `--volume` is provided. This gives a default behaviour that is non-destructive towards user data. ## Test plan *How are these changes tested?* - [x] Tests pass locally with `pytest` for python, `yarn test` for js ## Documentation Changes N/A
23 lines
434 B
YAML
23 lines
434 B
YAML
version: '3.9'
|
|
|
|
networks:
|
|
net:
|
|
driver: bridge
|
|
services:
|
|
server:
|
|
image: ghcr.io/chroma-core/chroma:latest
|
|
environment:
|
|
- IS_PERSISTENT=TRUE
|
|
volumes:
|
|
# Default configuration for persist_directory in chromadb/config.py
|
|
# Currently it's located in "/chroma/chroma/"
|
|
- chroma-data:/chroma/chroma/
|
|
ports:
|
|
- 8000:8000
|
|
networks:
|
|
- net
|
|
|
|
volumes:
|
|
chroma-data:
|
|
driver: local
|