Skip to content

Minor updates and fix to docker compose files #4567

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions docker-compose.server.example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,14 @@ networks:
services:
server:
image: ghcr.io/chroma-core/chroma:latest
hostname: chromadb
container_name: chromadb
environment:
- IS_PERSISTENT=TRUE
- HOSTNAME="chromadb"
- CHROMA_WORKERS=4
- TZ="UTC"
- ADDRESS=0.0.0.0
volumes:
# Default configuration for persist_directory in chromadb/config.py
# Currently it's located in "/chroma/chroma/"
Expand All @@ -16,6 +22,12 @@ services:
- 8000:8000
networks:
- net
healthcheck:
test: curl http://127.0.0.1:8000/api/v2/heartbeat
interval: 12s
timeout: 3s
retries: 3
start_period: 30s

volumes:
chroma-data:
Expand Down
4 changes: 4 additions & 0 deletions docker-compose.test-auth.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@ services:
build:
context: .
dockerfile: Dockerfile
hostname: chromadb
container_name: chromadb
volumes:
# Default configuration for persist_directory in chromadb/config.py
# Currently it's located in "/chroma/chroma/"
- chroma-data:/chroma/chroma
command: "--workers 1 --host 0.0.0.0 --port 8000 --proxy-headers --log-config chromadb/log_config.yml --timeout-keep-alive 30"
environment:
Expand Down
6 changes: 6 additions & 0 deletions docker-compose.test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ services:
context: .
dockerfile: ${DOCKERFILE:-Dockerfile}
platform: ${PLATFORM:-linux/amd64}
hostname: chromadb
container_name: chromadb
volumes:
# Default configuration for persist_directory in chromadb/config.py
# Currently it's located in "/chroma/chroma/"
- chroma-data:/chroma/chroma/
command: "--workers 1 --host 0.0.0.0 --port 8000 --proxy-headers --log-config chromadb/log_config.yml --timeout-keep-alive 30"
environment:
- ANONYMIZED_TELEMETRY=False
Expand Down
18 changes: 13 additions & 5 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,23 +14,31 @@ services:
# Uncomment below to build in release mode
# args:
# RELEASE_MODE: "1"
hostname: chromadb
container_name: chromadb
volumes:
# The default config specifies a persist_directory of /data.
# Read more about deployments: https://docs.trychroma.com/deployment
- chroma-data:/data
# Default configuration for persist_directory in chromadb/config.py
# Currently it's located in "/chroma/chroma/"
- chroma-data:/chroma/chroma/
environment:
- CHROMA_WORKERS=4 # adjust base on expected workload
- CHROMA_OPEN_TELEMETRY__ENDPOINT=${CHROMA_OPEN_TELEMETRY__ENDPOINT}
- CHROMA_OPEN_TELEMETRY__SERVICE_NAME=${CHROMA_OPEN_TELEMETRY__SERVICE_NAME}
- OTEL_EXPORTER_OTLP_HEADERS=${OTEL_EXPORTER_OTLP_HEADERS}
- IS_PERSISTENT=TRUE
- HOSTNAME="chromadb"
- TZ="UTC"
- ADDRESS=0.0.0.0
restart: unless-stopped # possible values are: "no", always", "on-failure", "unless-stopped"
ports:
- "8000:8000"
healthcheck:
# Adjust below to match your container port
test: [ "CMD", "curl", "-f", "http://localhost:8000/api/v2/heartbeat" ]
interval: 30s
timeout: 10s
interval: 10s
timeout: 3s
retries: 3
start_period: 32s
networks:
- net

Expand Down