-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
47 lines (43 loc) · 930 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
47 lines (43 loc) · 930 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
42
43
44
45
46
47
version: '3.8'
services:
backend:
build:
context: ./backend
dockerfile: Dockerfile
container_name: web-restaurant-backend
ports:
- "8000:5000"
env_file:
- ./backend/.env
environment:
- PORT=5000
- MONGO_URI=mongodb://mongo:27017/web-food-order
command: sh -c "yarn seed && yarn start"
volumes:
- ./backend:/app
- /app/node_modules
depends_on:
- mongo
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
container_name: web-restaurant-frontend
ports:
- "5173:5173"
environment:
- VITE_PROXY_TARGET=http://backend:5000/api/v1/
volumes:
- ./frontend:/app
- /app/node_modules
depends_on:
- backend
mongo:
image: mongo:4.4
container_name: web-restaurant-mongo
ports:
- "27017:27017"
volumes:
- mongo_data:/data/db
volumes:
mongo_data: