-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.dev.yaml
More file actions
41 lines (35 loc) · 1017 Bytes
/
Copy pathcompose.dev.yaml
File metadata and controls
41 lines (35 loc) · 1017 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
services:
web:
volumes:
- ./apps/web:/usr/src/app
- web-node-modules:/usr/src/app/node_modules
command: ["sh", "-c", "npm install && npm run dev -- --host 0.0.0.0"]
environment:
- NODE_ENV=development
api:
volumes:
- ./apps/api:/usr/src/app
command: ["sh", "run-dev.sh"]
depends_on:
db:
condition: service_healthy
environment:
- APP_ENV=development
preview:
volumes:
- ./services/preview:/usr/src/app
command: ["uvicorn", "server:app", "--host", "0.0.0.0", "--port", "8002", "--reload"]
compiler:
volumes:
- ./services/compiler/server.py:/workspace/server.py
realtime:
volumes:
- ./services/realtime:/usr/src/app
- realtime-node-modules:/usr/src/app/node_modules
command: ["sh", "-c", "npm install && npm run dev"]
db:
ports:
- "5433:5432" # 如果本机已有 5432,避免冲突;没有的话可以改回 5432:5432
volumes:
web-node-modules:
realtime-node-modules: