forked from DangItJason/TutorBase
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
46 lines (43 loc) · 925 Bytes
/
docker-compose.yml
File metadata and controls
46 lines (43 loc) · 925 Bytes
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.8'
services:
server:
build:
context: ./server
dockerfile: Dockerfile
image: tutorbase-server
container_name: tutorbase-server
command: npm run dev
volumes:
- ./server/:/usr/src/app/backend
- /usr/src/app/backend/node_modules
ports:
- "9000:9000"
environment:
- NODE_ENV=development
networks:
- app-network
client:
build:
context: ./client
dockerfile: Dockerfile
image: tutorbase-client
container_name: tutorbase-client
command: npm start
volumes:
- ./client/:/usr/src/app/frontend
- /usr/src/app/frontend/node_modules
depends_on:
- server
ports:
- "3000:3000"
environment:
- REACT_APP_API_BASE_ADDRESS=http://localhost:9000/
networks:
- app-network
networks:
app-network:
driver: bridge
volumes:
node_modules:
web-root:
driver: local