-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
40 lines (38 loc) · 801 Bytes
/
docker-compose.yml
File metadata and controls
40 lines (38 loc) · 801 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
version: "3"
services:
server:
container_name: server
build:
context: .
dockerfile: Dockerfile
command: "npm run server"
volumes:
- ./index.js:/usr/src/app/index.js
- ./models:/usr/src/app/models
- ./routes:/usr/src/app/routes
- ./services:/usr/src/app/services
expose:
- 5000
ports:
- 5000:5000
environment:
- NODE_ENV=development
- CHOKIDAR_USEPOLLING=true
client:
container_name: client
build:
context: .
command: "npm run client"
volumes:
- ./client/src:/usr/src/app/client/src
- ./client/public:/usr/src/app/client/public
expose:
- 3000
ports:
- 3000:3000
links:
- server
depends_on:
- server
env_file:
- client/.env