forked from Magentah/chewie-bot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.dev.yml
35 lines (35 loc) · 939 Bytes
/
docker-compose.dev.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
# docker-compose.yml
version: "3"
volumes:
node_modules:
chewie-db:
images:
services:
ui:
build:
context: ./client
dockerfile: Dockerfile
volumes:
- ./client/:/usr/src/chewiebot/client
- "/usr/src/chewiebot/client/node_modules/"
ports:
- 3001:3000
expose:
- 3001
environment:
- WATCHPACK_POLLING=true
command: ["yarn", "start"]
backend:
build:
context: ./server
dockerfile: Dockerfile
volumes:
- ./server:/usr/src/chewiebot/server
- chewie-db:/usr/src/chewiebot/server/db
- images:/usr/src/chewiebot/server/images
- "/usr/src/chewiebot/server/node_modules/"
ports:
- 8080:8080
environment:
NODE_ENV: development
command: ["npm", "run", "start-debug"]