-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
49 lines (46 loc) · 1.04 KB
/
docker-compose.yml
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
version: "3"
services:
backend:
container_name: shopit-backend-dev
build:
context: backend
dockerfile: Dockerfile
command: fresh
env_file:
- ./backend/.env
ports:
- "5000:5000"
volumes:
- ./backend:/usr/src/backend
networks:
- shopit
frontend:
container_name: shopit-frontend-dev
build:
context: frontend
dockerfile: Dockerfile
command: npm start
env_file:
- ./frontend/.env
ports:
- "3000:3000"
volumes:
- ./frontend:/usr/src/frontend
networks:
- shopit
# mongodb:
# container_name: shopit-mongodb-dev
# restart: always
# image: mongo:latest
# ports:
# - "27017:27017"
# volumes:
# - mongodb-data:/data/db
# networks:
# - shopit-networks
networks:
shopit:
driver: bridge
# volumes:
# mongodb-data:
# driver: local