-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.full.yml
More file actions
49 lines (45 loc) · 1022 Bytes
/
Copy pathdocker-compose.full.yml
File metadata and controls
49 lines (45 loc) · 1022 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
44
45
46
47
48
version: '3.8'
services:
# Backend API
api:
build: .
ports:
- "8080:8000"
environment:
- OPENAI_API_KEY=${OPENAI_API_KEY}
- CHAT_MODEL=${CHAT_MODEL:-gpt-4o-mini}
- EMBEDDING_MODEL=${EMBEDDING_MODEL:-text-embedding-3-large}
- DATA_DIR=/app/data
- INDEX_DIR=/app/data/index
- API_TOKEN=${API_TOKEN}
volumes:
- ./data:/app/data
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/healthz"]
interval: 30s
timeout: 10s
retries: 3
# Frontend
frontend:
build: ./frontend
ports:
- "3000:80"
depends_on:
- api
restart: unless-stopped
environment:
- REACT_APP_API_URL=http://localhost:8080
# Optional: Nginx reverse proxy
nginx:
image: nginx:alpine
ports:
- "80:80"
volumes:
- ./nginx.conf:/etc/nginx/conf.d/default.conf
depends_on:
- api
- frontend
restart: unless-stopped
profiles:
- proxy