-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yaml
More file actions
57 lines (54 loc) · 1.4 KB
/
compose.yaml
File metadata and controls
57 lines (54 loc) · 1.4 KB
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
services:
chroma:
image: chromadb/chroma:1.5.8.dev18
container_name: chroma-ascii125
ports:
- "9000:8000"
volumes:
- chroma_data:/data
restart: unless-stopped
redis:
image: redis:trixie
container_name: redis-ascii125
ports:
- "6379:6379"
volumes:
- redis_data:/data
restart: unless-stopped
api:
build:
context: .
dockerfile: Dockerfile.api
image: mydoc-api:latest
container_name: mydoc-api
depends_on:
- chroma
- redis
environment:
API_HOST: "0.0.0.0"
API_PORT: "8000"
CHROMA_HOST: "chroma"
CHROMA_PORT: "8000"
CHROMA_COLLECTION: "documents"
REDIS_HOST: "redis"
REDIS_PORT: "6379"
SQLITE_PATH: "/app/data/app.db"
GROQ_TOKEN: "${GROQ_TOKEN}"
GROQ_MODEL: "${GROQ_MODEL:-llama-3.3-70b-versatile}"
CORS_ORIGINS: "${CORS_ORIGINS:-http://localhost:5173}"
COOKIE_SECURE: "${COOKIE_SECURE:-false}"
COOKIE_SAMESITE: "${COOKIE_SAMESITE:-lax}"
CHAT_TTL_SECONDS: "${CHAT_TTL_SECONDS:-43200}"
RATE_LIMIT_UPLOADS_PER_MIN: "${RATE_LIMIT_UPLOADS_PER_MIN:-5}"
RATE_LIMIT_MESSAGES_PER_MIN: "${RATE_LIMIT_MESSAGES_PER_MIN:-30}"
ports:
- "8000:8000"
volumes:
- api_data:/app/data
- api_hf_cache:/app/.cache/huggingface
restart: unless-stopped
volumes:
chroma_data:
redis_data:
api_data:
api_hf_cache: