-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
27 lines (26 loc) · 838 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
27 lines (26 loc) · 838 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# DocuMind API + persistent Chroma. Run Ollama on the host (or add an ollama service on Linux).
# API: http://127.0.0.1:8001 | Point NEXT_PUBLIC_API_BASE_URL at this URL from the Next.js app.
services:
documind-api:
build: .
ports:
- "8001:8001"
volumes:
- chroma_data:/app/chroma_db
- ./data:/app/data:ro
environment:
OLLAMA_BASE_URL: http://host.docker.internal:11434
CHROMA_PERSIST_DIR: /app/chroma_db
APP_ENV: production
DISABLE_OPENAPI: "false"
LOG_LEVEL: INFO
extra_hosts:
- "host.docker.internal:host-gateway"
healthcheck:
test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://127.0.0.1:8001/health/live')"]
interval: 15s
timeout: 5s
retries: 5
start_period: 20s
volumes:
chroma_data: