-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
50 lines (40 loc) · 962 Bytes
/
docker-compose.yaml
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
42
43
44
45
46
47
48
49
50
version: '3'
services:
web:
depends_on:
- api
build: ./frontend
ports:
- 5173:3000
develop:
watch:
- path: ./frontend/package.json
action: rebuild
- path: ./frontend/package.lock.json
action: rebuild
- path: ./frontend
target: /app
action: sync
api:
depends_on:
- db
build: ./backend
ports:
- 5000:5000
environment:
- NODE_ENV=development
develop:
watch:
- path: ./backend/package.json
action: rebuild
- path: ./backend/package.lock.json
action: rebuild
- path: ./backend
target: /app
action: sync
db:
image: mongo:latest
ports:
- 27017:27017
volumes:
- ./data/:/data/db