-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
45 lines (41 loc) · 1.05 KB
/
Copy pathdocker-compose.yml
File metadata and controls
45 lines (41 loc) · 1.05 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
version: '3.8'
services:
backend:
build:
context: ./backend
dockerfile: Dockerfile
container_name: ai-doc-backend
ports:
- "8000:8000"
environment:
- DEBUG=${DEBUG:-false}
- GEMINI_API_KEY=${GEMINI_API_KEY}
- MAX_CONCURRENT_LLM_CALLS=${MAX_CONCURRENT_LLM_CALLS:-5}
- GEMINI_PRO_RPM=${GEMINI_PRO_RPM:-2}
- GEMINI_PRO_RPD=${GEMINI_PRO_RPD:-50}
- GEMINI_FLASH_RPM=${GEMINI_FLASH_RPM:-10}
- GEMINI_FLASH_RPD=${GEMINI_FLASH_RPD:-250}
volumes:
- ./backend/app:/app/app
- temp_repos:/app/temp_repos
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/api/v1/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
container_name: ai-doc-frontend
ports:
- "3000:3000"
environment:
- NEXT_PUBLIC_API_URL=http://backend:8000/api/v1
depends_on:
- backend
volumes:
temp_repos:
driver: local