-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
56 lines (53 loc) · 1.05 KB
/
docker-compose.yml
File metadata and controls
56 lines (53 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
45
46
47
48
49
50
51
52
53
54
55
56
services:
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
ports:
- "5173:5173"
volumes:
- ./frontend:/app
- /app/node_modules
environment:
- VITE_API_URL=http://localhost:5000
- CHOKIDAR_USEPOLLING=true
- WATCHPACK_POLLING=true
depends_on:
- backend
deploy:
resources:
limits:
cpus: "4.0"
memory: "1G"
backend:
build:
context: ./backend
dockerfile: Dockerfile
ports:
- "5000:5000"
volumes:
- ./backend:/app
- /app/node_modules
environment:
- MONGODB_URI=mongodb://mongodb:27017/snippetdb
- PORT=5000
depends_on:
- mongodb
deploy:
resources:
limits:
cpus: "4.0"
memory: "1G"
mongodb:
image: mongo:latest
ports:
- "27017:27017"
volumes:
- mongodb_data:/data/db
deploy:
resources:
limits:
cpus: "4.0"
memory: "1G"
volumes:
mongodb_data: