fix: update chromadb service configuration with healthcheck and environment variables
This commit is contained in:
+12
-2
@@ -59,13 +59,16 @@ services:
|
|||||||
max_attempts: 3
|
max_attempts: 3
|
||||||
|
|
||||||
chromadb:
|
chromadb:
|
||||||
|
hostname: chromadb
|
||||||
image: chromadb/chroma:latest
|
image: chromadb/chroma:latest
|
||||||
volumes:
|
volumes:
|
||||||
- chromadb:/data
|
- chromadb:/data
|
||||||
environment:
|
environment:
|
||||||
- IS_PERSISTENT=true
|
- IS_PERSISTENT=TRUE
|
||||||
- ALLOW_RESET=true
|
- ALLOW_RESET=TRUE
|
||||||
- PERSIST_DIRECTORY=/data
|
- PERSIST_DIRECTORY=/data
|
||||||
|
- ANONYMIZED_TELEMETRY=False
|
||||||
|
- CHROMA_SERVER_HOST=0.0.0.0
|
||||||
expose:
|
expose:
|
||||||
- 8000
|
- 8000
|
||||||
networks:
|
networks:
|
||||||
@@ -79,8 +82,15 @@ services:
|
|||||||
condition: any
|
condition: any
|
||||||
delay: 5s
|
delay: 5s
|
||||||
max_attempts: 3
|
max_attempts: 3
|
||||||
|
healthcheck:
|
||||||
|
test: ["CMD-SHELL", "timeout 10s bash -c ':> /dev/tcp/127.0.0.1/8000' || exit 1"]
|
||||||
|
interval: 10s
|
||||||
|
timeout: 5s
|
||||||
|
retries: 3
|
||||||
|
start_period: 10s
|
||||||
|
|
||||||
ollama:
|
ollama:
|
||||||
|
hostname: ollama
|
||||||
image: ollama/ollama:latest
|
image: ollama/ollama:latest
|
||||||
volumes:
|
volumes:
|
||||||
- ollama:/root/.ollama
|
- ollama:/root/.ollama
|
||||||
|
|||||||
Reference in New Issue
Block a user