muthuk2 commited on
Commit
e588ede
·
verified ·
1 Parent(s): 7fca7c5

feat: Docker Compose for full stack deployment

Browse files
Files changed (1) hide show
  1. docker-compose.yml +35 -0
docker-compose.yml ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ version: '3.9'
2
+
3
+ services:
4
+ backend:
5
+ build:
6
+ context: ./backend
7
+ dockerfile: Dockerfile
8
+ ports:
9
+ - "8000:8000"
10
+ environment:
11
+ - LLM_BASE_URL=${LLM_BASE_URL:-https://api.groq.com/openai/v1}
12
+ - LLM_API_KEY=${LLM_API_KEY}
13
+ - LLM_MODEL=${LLM_MODEL:-llama-3.3-70b-versatile}
14
+ - LLM_MAX_TOKENS=${LLM_MAX_TOKENS:-8192}
15
+ - LLM_TEMPERATURE=${LLM_TEMPERATURE:-0.3}
16
+ - CORS_ORIGINS=http://localhost:5173,http://localhost:3000
17
+ healthcheck:
18
+ test: ["CMD", "curl", "-f", "http://localhost:8000/health"]
19
+ interval: 30s
20
+ timeout: 5s
21
+ retries: 3
22
+ restart: unless-stopped
23
+
24
+ frontend:
25
+ build:
26
+ context: ./frontend
27
+ dockerfile: Dockerfile
28
+ ports:
29
+ - "3000:80"
30
+ environment:
31
+ - VITE_API_URL=http://localhost:8000
32
+ depends_on:
33
+ backend:
34
+ condition: service_healthy
35
+ restart: unless-stopped