-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.dev.yaml
More file actions
56 lines (54 loc) · 1.48 KB
/
Copy pathcompose.dev.yaml
File metadata and controls
56 lines (54 loc) · 1.48 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
47
48
49
50
51
52
53
54
55
56
services:
api:
restart: "no"
command:
- sh
- -c
- >-
vectorless-rag migrate && uvicorn vectorless_rag.api:app
--host 0.0.0.0 --port 8000 --reload --reload-dir /app/src
environment:
WATCHFILES_FORCE_POLLING: "true"
volumes:
- ./apps/api/src:/app/src:ro
worker:
restart: "no"
command:
- watchfiles
- --filter
- python
- --target-type
- command
- python -m vectorless_rag.worker
- /app/src
environment:
WATCHFILES_FORCE_POLLING: "true"
volumes:
- ./apps/api/src:/app/src:ro
web:
image: vectorless-rag-web-dev
build:
target: development
restart: "no"
environment:
CHOKIDAR_USEPOLLING: "true"
CHOKIDAR_INTERVAL: "250"
healthcheck:
test: ["CMD", "node", "-e", "fetch('http://127.0.0.1:3001/@vite/client').then(r=>{if(!r.ok)process.exit(1)}).catch(()=>process.exit(1))"]
develop:
watch:
- action: rebuild
path: ./apps/web/package.json
- action: rebuild
path: ./package.json
- action: rebuild
path: ./pnpm-lock.yaml
- action: rebuild
path: ./pnpm-workspace.yaml
- action: rebuild
path: ./apps/web/Dockerfile
volumes:
- ./apps/web/src:/app/apps/web/src
- ./apps/web/public:/app/apps/web/public:ro
- ./apps/web/tsconfig.json:/app/apps/web/tsconfig.json:ro
- ./apps/web/vite.config.ts:/app/apps/web/vite.config.ts:ro