-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
43 lines (39 loc) · 833 Bytes
/
docker-compose.yml
File metadata and controls
43 lines (39 loc) · 833 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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
version: '3.8'
services:
backend:
build:
context: .
dockerfile: Dockerfile.backend
ports:
- "8000:8000"
environment:
- OPENAI_API_KEY=${OPENAI_API_KEY}
- CHROMA_PERSIST_DIRECTORY=/app/embeddings
- UPLOAD_DIRECTORY=/app/data/images
volumes:
- ./data:/app/data
- ./embeddings:/app/embeddings
depends_on:
- chromadb
frontend:
build:
context: .
dockerfile: Dockerfile.frontend
ports:
- "3000:3000"
environment:
- API_BASE_URL=http://backend:8000
depends_on:
- backend
chromadb:
image: chromadb/chroma:latest
ports:
- "8001:8000"
volumes:
- ./embeddings:/chroma/chroma
environment:
- IS_PERSISTENT=TRUE
- PERSIST_DIRECTORY=/chroma/chroma
volumes:
embeddings:
data: