-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
46 lines (46 loc) · 923 Bytes
/
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
version: "3"
services:
### back-end container
app:
container_name: taw-app-container
image: taw-app
volumes:
- ./Server/Code:/app
- /Server/Code/node_modules
build: ./Server/Code
ports:
- "8080:8080"
networks:
- network
depends_on:
- mongo
### front-end container
frontend:
container_name: taw-frontend-container
image: taw-frontend
volumes:
- ./Client/TawFrontend:/app
- /Client/TawFrontend/node_modules
build: ./Client/TawFrontend
ports:
- "4200:4200"
networks:
- network
depends_on:
- mongo
- app
### mongodb container
mongo:
container_name: taw-mongo-container
image: mongo
volumes:
- ./Server/data:/data/db
ports:
- '27018:27017'
networks:
- network
networks:
network:
driver: 'bridge'
# docker-compose up
# docker system prune -a --volumes