generated from DefangSamples/sample-angular-express-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.dev.yaml
43 lines (42 loc) · 831 Bytes
/
compose.dev.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
services:
frontend:
build:
context: ./frontend
dockerfile: Dockerfile.dev
volumes:
- ./frontend:/app
- /app/node_modules
ports:
- target: 4200
published: 4200
mode: ingress
environment:
- NODE_ENV=development
restart: unless-stopped
deploy:
resources:
reservations:
memory: 64M
depends_on:
- backend
backend:
build:
context: ./backend
volumes:
- ./backend:/usr/src/app
- /usr/src/app/node_modules
ports:
- target: 3000
published: 3000
mode: ingress
environment:
- NODE_ENV=development
- PORT=3000
restart: unless-stopped
deploy:
resources:
reservations:
memory: 64M
command: npm run dev
volumes:
node_modules: