-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
29 lines (26 loc) · 870 Bytes
/
docker-compose.yml
File metadata and controls
29 lines (26 loc) · 870 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
services:
# Backend service for the FastAPI quiz generation API
fastapi_generate_quiz:
build:
context: ./backend
dockerfile: Dockerfile
ports:
- "8000:8000"
environment:
- OPENAI_API_KEY=${OPENAI_API_KEY}
- GEMINI_API_KEY=${GEMINI_API_KEY}
- AZURE_AI_API_BASE=${AZURE_AI_API_BASE}
- AZURE_AI_API_KEY=${AZURE_AI_API_KEY}
- DEEPSEEK_API_KEY=${DEEPSEEK_API_KEY}
# Frontend service for local testing of the static site
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
ports:
- "8080:80" # Nginx
# TESTING:
# 1. Set API keys: export OPENAI_API_KEY="your-key" (etc.)
# 2. Start: docker compose up --build (-d if you want to run in background)
# 3. Access: Frontend http://localhost:8080, Backend http://localhost:8000
# 4. Test: curl http://localhost:8000/SupportedModels