mirror of
https://github.com/placeholder-soft/chroma.git
synced 2026-05-07 08:27:01 +08:00
## Description of changes - Improvements & Bug fixes Bug-591 ## Test plan 1. docker compose up -d 2. delete collection earlier stored in the volume ## Documentation Changes No documentation changes related to this PR. --------- Co-authored-by: Jeff Huber <jeff@trychroma.com>
47 lines
1.1 KiB
YAML
47 lines
1.1 KiB
YAML
version: '3.9'
|
|
|
|
networks:
|
|
net:
|
|
driver: bridge
|
|
services:
|
|
server:
|
|
image: ghcr.io/chroma-core/chroma:latest
|
|
volumes:
|
|
- index_data:/chroma/.chroma/index
|
|
environment:
|
|
- CHROMA_DB_IMPL=clickhouse
|
|
- CLICKHOUSE_HOST=clickhouse
|
|
- CLICKHOUSE_PORT=8123
|
|
ports:
|
|
- 8000:8000
|
|
depends_on:
|
|
- clickhouse
|
|
networks:
|
|
- net
|
|
clickhouse:
|
|
image: clickhouse/clickhouse-server:22.9-alpine
|
|
environment:
|
|
- ALLOW_EMPTY_PASSWORD=yes
|
|
- CLICKHOUSE_TCP_PORT=9000
|
|
- CLICKHOUSE_HTTP_PORT=8123
|
|
ports:
|
|
- '8123:8123'
|
|
- '9000:9000'
|
|
volumes:
|
|
- clickhouse_data:/var/lib/clickhouse
|
|
- clickhouse_logs:/var/log/clickhouse-server
|
|
- backups:/backups
|
|
- ${PWD}/config/backup_disk.xml:/etc/clickhouse-server/config.d/backup_disk.xml
|
|
- ${PWD}/config/chroma_users.xml:/etc/clickhouse-server/users.d/chroma.xml
|
|
networks:
|
|
- net
|
|
volumes:
|
|
clickhouse_data:
|
|
driver: local
|
|
clickhouse_logs:
|
|
driver: local
|
|
index_data:
|
|
driver: local
|
|
backups:
|
|
driver: local
|