-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
41 lines (41 loc) · 925 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
version: '3.4'
services:
api:
build: ./src/api
command: sh -c "/root/api/scripts/install-deps.sh && nodemon server.js"
environment:
- NODE_ENV=development
- PORT=3000
ports:
- '1323:3000'
working_dir: /root/api/src
volumes:
- ./src/api:/root/api
- ./data/api:/data
depends_on:
- "mongodb"
web:
build: ./src/web
command: sh -c "/root/web/scripts/install-deps.sh && npm run start-dev "
environment:
- NODE_ENV=development
- PORT=4200
ports:
- '4200:4200'
working_dir: /root/web/src
volumes:
- ./src/web:/root/web
- ./data/web:/data
depends_on:
- "api"
mongodb:
image: mongo:latest
working_dir: /
hostname: mongodb
restart: "no"
ports:
- '27017:27017'
volumes:
- mongoData:/data/db
volumes:
mongoData: {}