-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
59 lines (54 loc) · 1.5 KB
/
docker-compose.yml
File metadata and controls
59 lines (54 loc) · 1.5 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
58
59
version: '3.8'
services:
# 1. The Memory Store (For BullMQ)
redis:
image: redis:7-alpine
ports:
- "6379:6379"
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
timeout: 3s
retries: 5
# 2. The Python Intelligence Engine
engine:
build: ./apps/engine
ports:
- "8000:8000"
environment:
- PINECONE_API_KEY=${PINECONE_API_KEY}
- GROQ_API_KEY=${GROQ_API_KEY}
# Mount local cache so HuggingFace doesn't re-download the model every restart
volumes:
- huggingface_cache:/root/.cache/huggingface
# 3. The Node.js Express Gateway
gateway:
build: ./apps/api
ports:
- "3001:3001"
environment:
- DATABASE_URL=${DATABASE_URL} # Ensure this is in your root .env file
- REDIS_HOST=redis
- REDIS_PORT=6379
- ENGINE_URL=http://engine:8000
- CLERK_SECRET_KEY=${CLERK_SECRET_KEY}
- CLERK_PUBLISHABLE_KEY=${NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY}
depends_on:
redis:
condition: service_healthy
engine:
condition: service_started
# 4. The Next.js Web Dashboard
web:
build: ./apps/web
ports:
- "3000:3000"
environment:
# Client-side React still needs localhost because it runs in the user's browser!
- NEXT_PUBLIC_API_URL=http://localhost:3001
- NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=${NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY}
- CLERK_SECRET_KEY=${CLERK_SECRET_KEY}
depends_on:
- gateway
volumes:
huggingface_cache: