forked from flyerjohn/PomodORC
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
40 lines (37 loc) · 939 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
version: '3.5'
services:
db:
container_name: db_pomodorc
image: mongo
command: mongod --quiet --logpath /dev/null
ports:
- 27017:27017
api:
depends_on:
- db
volumes:
- ./server:/app
- ./server/node_modules:/app/node_modules
container_name: backend_pomodorc
environment:
- DATABASE_URL=mongodb://db/pomodorc
build:
context: ./server
ports:
- "5000:5000"
command: npm start
front:
build: front
environment:
CHOKIDAR_USEPOLLING: "true"
volumes:
- ./front:/app
- ./front/node_modules:/app/node_modules
container_name: frontend_pomodorc
build:
context: ./front
command: yarn start
ports:
- "3000:3000"
depends_on:
- api