-
-
Notifications
You must be signed in to change notification settings - Fork 163
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
41 lines (38 loc) · 764 Bytes
/
docker-compose.yml
File metadata and controls
41 lines (38 loc) · 764 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
services:
backend:
build:
context: ./backend
dockerfile: Dockerfile.dev
ports:
- "1313:1313"
volumes:
- ./backend:/app
environment:
- PORT=1313
- DATABASE_URI=mongodb://mongo:27017/debateai
- CONFIG_PATH=./config/config.prod.yml
env_file:
- ./backend/.env
depends_on:
- mongo
frontend:
build:
context: ./frontend
dockerfile: Dockerfile.dev
ports:
- "5173:5173"
volumes:
- ./frontend:/app
- /app/node_modules
env_file:
- ./frontend/.env
environment:
- VITE_BASE_URL=http://localhost:1313
mongo:
image: mongo:latest
ports:
- "27017:27017"
volumes:
- mongo_data:/data/db
volumes:
mongo_data: