-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yaml
49 lines (48 loc) · 964 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
48
49
version: "3.8"
services:
web:
depends_on:
- api
build: ./client
ports:
- "3000:3000"
env_file:
- ./client/.env
develop:
watch:
- path: ./client/package.json
action: rebuild
- path: ./client/package-lock.json
action: rebuild
- path: ./client
target: /app
action: sync
api:
depends_on:
- db
build:
context: ./backend
dockerfile: Dockerfile.dev
ports:
- "5000:5000"
env_file:
- ./backend/.env
environment:
- MONGO_URI=mongodb://db:27017/rolling
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:
- mongodb:/data/db
volumes:
mongodb: