Files
chroma/docker-compose.server.example.yml
Trayan Azarov eea76bfba6 [ENH]: Docker compose data volume (#1119)
## 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
2023-12-06 09:39:21 -08:00

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