-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
48 lines (47 loc) · 953 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
version: '3.5'
services:
backend:
container_name: backend
build:
context: ./backend
dockerfile: Dockerfile
volumes:
- './backend/:/usr/src/server'
- '/usr/src/server/node_modules'
ports:
- '8080:8080'
environment:
- NODE_ENV=development
networks:
- jmeteruinetwork
depends_on:
- mongodb
frontend:
container_name: frontend
build:
context: ./frontend
dockerfile: Dockerfile
volumes:
- './frontend/:/usr/src/app'
- '/usr/src/app/node_modules'
ports:
- '3000:3000'
links:
- backend
environment:
- NODE_ENV=development
- CHOKIDAR_USEPOLLING=true
networks:
- jmeteruinetwork
mongodb:
container_name: mongodb
build:
context: ./db
dockerfile: Dockerfile
ports:
- 27017:27017
networks:
- jmeteruinetwork
networks:
jmeteruinetwork:
driver: bridge