-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yaml
More file actions
42 lines (41 loc) · 916 Bytes
/
compose.yaml
File metadata and controls
42 lines (41 loc) · 916 Bytes
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
services:
backend:
build:
context: ./backend
ports:
- '4000:4000'
volumes:
- /app/node_modules
command: npm run watch
develop:
watch:
- action: sync
path: ./backend/src
target: /app/src
ignore:
- ./backend/node_modules/
- action: rebuild
path: ./backend/package.json
environment:
NODE_ENV: development
JWT_SECRET: # write JWT secret key
frontend:
build:
context: ./frontend
ports:
- '5173:5173'
volumes:
- /app/node_modules
command: npm run dev
develop:
watch:
- action: sync
path: ./frontend/src
target: /app/src
- action: sync
path: ./frontend/public
target: /app/public
- action: rebuild
path: ./frontend/package.json
environment:
NODE_ENV: development