-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
executable file
·68 lines (58 loc) · 1.28 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
version: '2'
services:
# backend
# ****************************************
backend:
container_name: Backend
build:
context: ./backend
volumes:
- ./backend:/usr/src/app
- /usr/src/app/node_modules
ports:
- 4000:4000
environment:
- NODE_ENV=development
command: npm run start:dev
networks:
- nestjs-react-pagination
depends_on:
- mongodb
# frontend
# ****************************************
frontend:
container_name: Frontend
build:
context: ./frontend
volumes:
- ./frontend:/usr/src/app
- ./usr/src/app/node_modules
ports:
- 3000:3000
stdin_open: true
environment:
- CHOKIDAR_USEPOLLING=true
- CI=true
- REACT_APP_NODE_ENV=development
command: npm run start
networks:
- nestjs-react-pagination
depends_on:
- backend
#mongodb
# ****************************************
mongodb:
image: mongo:latest
container_name: mongodb
ports:
- 27017:27017
volumes:
- ./mongo-data/:/data/db
environment:
MONGO_INITDB_ROOT_USERNAME: admin
MONGO_INITDB_ROOT_PASSWORD: admin
restart: always
networks:
- nestjs-react-pagination
networks:
nestjs-react-pagination: