forked from coleestrin/pd2-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
46 lines (43 loc) · 1.04 KB
/
Copy pathdocker-compose.dev.yml
File metadata and controls
46 lines (43 loc) · 1.04 KB
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
services:
api:
build:
context: ./api
dockerfile: Dockerfile.dev
args:
TSX_VERSION: 4.21.0
environment:
NODE_ENV: development
command: ["tsx", "watch", "src/index.ts"]
volumes:
- ./api:/app
- api_node_modules:/app/node_modules
- app_data:/app/data
jobs:
build:
context: ./api
dockerfile: Dockerfile.dev
args:
TSX_VERSION: 4.21.0
environment:
NODE_ENV: development
command: ["tsx", "watch", "src/jobs.ts"]
profiles: ["jobs"]
volumes:
- ./api:/app
- api_node_modules:/app/node_modules
- app_data:/app/data
web:
build:
context: ./web
dockerfile: Dockerfile.dev
environment:
NODE_ENV: development
VITE_API_URL: ${VITE_API_URL:-http://localhost:3000/api/v1}
CHOKIDAR_USEPOLLING: "true"
command: ["npm", "run", "dev", "--", "--host", "0.0.0.0", "--port", "4173"]
volumes:
- ./web:/app
- web_node_modules:/app/node_modules
volumes:
api_node_modules:
web_node_modules: