-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
53 lines (53 loc) · 925 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
47
48
49
50
51
52
53
version: "3.9"
services:
expressjs:
build:
context: .
dockerfile: Dockerfile.node
container_name: expressjs
env_file:
- ./.env
tty: true
ports:
- "3000:3000"
volumes:
- ./:/usr/src/app
- /usr/src/app/node_modules
depends_on:
- db
networks:
- front-tier
- back-tier
vuejs:
build:
context: .
dockerfile: Dockerfile.vuejs
container_name: vuejs
env_file:
- ./.env
tty: true
ports:
- "8080:8080"
volumes:
- ./:/usr/src/app
- /usr/src/app/node_modules
depends_on:
- expressjs
networks:
- front-tier
- back-tier
db:
image: mongo:4.4.2
restart: always
container_name: db
volumes:
- mongo_data:/data/db
ports:
- 0.0.0.0:27017:27017
networks:
- back-tier
volumes:
mongo_data:
networks:
front-tier:
back-tier: