mirror of
https://github.com/placeholder-soft/chroma.git
synced 2026-01-12 17:02:54 +08:00
51 lines
1.1 KiB
YAML
51 lines
1.1 KiB
YAML
version: '3.9'
|
|
|
|
networks:
|
|
chroma-net:
|
|
driver: bridge
|
|
|
|
services:
|
|
server:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
target: chroma_server
|
|
volumes:
|
|
- ./:/chroma
|
|
- index_data:/index_data
|
|
command: uvicorn chroma.app:app --reload --workers 1 --host 0.0.0.0 --port 8000
|
|
environment:
|
|
- CELERY_BROKER_URL=redis://redis:6379/0
|
|
- CELERY_RESULT_BACKEND=redis://redis:6379/0
|
|
- CLICKHOUSE_TCP_PORT=9000
|
|
ports:
|
|
- 8000:8000
|
|
depends_on:
|
|
- clickhouse
|
|
networks:
|
|
- chroma-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:/bitnami/clickhouse
|
|
- backups:/backups
|
|
- ./config/backup_disk.xml:/etc/clickhouse-server/config.d/backup_disk.xml
|
|
networks:
|
|
- chroma-net
|
|
|
|
volumes:
|
|
clickhouse_data:
|
|
driver: local
|
|
index_data:
|
|
driver: local
|
|
backups:
|
|
driver: local
|