forked from Magentah/chewie-bot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.ng.yml
33 lines (33 loc) · 906 Bytes
/
docker-compose.ng.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
# docker-compose.yml
version: "3"
volumes:
node_modules:
chewiebot-db:
images:
services:
ui:
build:
context: ./client
dockerfile: Dockerfile.prod
volumes:
- ./client/:/usr/src/chewiebot/client
- "/usr/src/chewiebot/client/node_modules/"
ports:
- 80:80
- 443:443
- 8020:8020
expose:
- 80
command: ["nginx", "-g", "daemon off;"]
backend:
build:
context: ./server
dockerfile: Dockerfile
volumes:
- ./server:/usr/src/chewiebot/server
- chewiebot-db:/usr/src/chewiebot/server/db
- images:/usr/src/chewiebot/server/images
- "/usr/src/chewiebot/server/node_modules/"
environment:
NODE_ENV: development
command: ["npm", "run", "start-debug"]