forked from Canopus-Labs/PrepPilot
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
53 lines (49 loc) · 1.27 KB
/
Copy pathdocker-compose.yml
File metadata and controls
53 lines (49 loc) · 1.27 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
45
46
47
48
49
50
51
52
53
version: '3.8'
services:
mongodb:
image: mongo:latest
container_name: preppilot-mongodb
ports:
- "27017:27017"
volumes:
- mongodb_data:/data/db
restart: unless-stopped
backend:
build:
context: ./backend
dockerfile: Dockerfile
container_name: preppilot-backend
ports:
- "8000:8000"
environment:
- PORT=8000
- MONGO_URI=mongodb://mongodb:27017/interview_prep_ai
- JWT_SECRET=development_secret_key_change_in_production
- FRONTEND_ORIGIN=http://localhost:5173
- EXTRA_ORIGINS=http://localhost:5173,http://127.0.0.1:5173
# NOTE: Add your GEMINI_API_KEY below or in an .env file
# - GEMINI_API_KEY=your_gemini_api_key_here
volumes:
- ./backend:/app
- /app/node_modules
depends_on:
- mongodb
restart: unless-stopped
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
container_name: preppilot-frontend
ports:
- "5173:5173"
environment:
# Use localhost:8000 so the browser can make requests to the exposed backend port
- VITE_BACKEND_URL=http://localhost:8000
volumes:
- ./frontend:/app
- /app/node_modules
depends_on:
- backend
restart: unless-stopped
volumes:
mongodb_data: