-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
47 lines (44 loc) · 922 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
version: "2.0"
services:
backend-ms1:
image: node:12-slim
working_dir: /app
command: npm run dev
networks:
- backend
- frontend
depends_on:
- mongodb-ms1
ports:
- 8080:80
volumes:
- ./backend-ms1/:/app/
- ./environments/.env.dev.backend:/app/.env.development
frontend-ms1:
image: node:12-slim
working_dir: /app
command: npm run dev
networks:
- frontend
depends_on:
- mongodb-ms1
- backend-ms1
ports:
- 7080:80
volumes:
- ./frontend-ms1/:/app/
- ./environments/.env.dev.frontend:/app/.env.development
mongodb-ms1:
image: mongo:4.2.5
networks:
- backend
volumes:
- "./mongodb/data/:/data/db/"
ports:
- 27000:27017
environment:
MONGO_INITDB_ROOT_USERNAME: mongoadmin
MONGO_INITDB_ROOT_PASSWORD: pass123
networks:
backend:
frontend: