-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.yaml
47 lines (42 loc) · 820 Bytes
/
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
version: "2.24"
services:
web:
depends_on:
- api
build: ./frontend
ports:
- "3000:3000"
develop:
watch:
- path: ./frontend/package.json
action: rebuild
- path: ./frontend/yarn.lock
action: rebuild
- path: ./frontend
target: /app
action: sync
api:
depends_on:
- db
build: backend
ports:
- "8080:8080"
environment:
MONGODB_URL: mongodb://db/songs
develop:
watch:
- path: ./backend/package.json
action: rebuild
- path: ./backend/yarn.lock
action: rebuild
- path: ./backend
target: /app
action: sync
db:
image: mongo
ports:
- "27017:27017"
volumes:
- songs:/data/db
volumes:
songs: