forked from HKUDS/DeepTutor
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
54 lines (47 loc) · 1.95 KB
/
Copy pathdocker-compose.dev.yml
File metadata and controls
54 lines (47 loc) · 1.95 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
# ============================================
# DeepTutor Docker Compose - Development Override
# ============================================
# Use with: python scripts/docker_compose.py -f docker-compose.yml -f docker-compose.dev.yml up
#
# This override file provides:
# - Hot-reload for both frontend and backend
# - Source code mounting for live editing
# - Development-friendly logging
# ============================================
services:
pocketbase:
volumes:
- ./data/pocketbase:/pb/pb_data
deeptutor:
build:
target: development
volumes:
# Mount backend source code for hot-reload
- ./deeptutor:/app/deeptutor:ro
- ./deeptutor_cli:/app/deeptutor_cli:ro
- ./scripts:/app/scripts:ro
# Mount the entire frontend source tree for hot-reload. Mounting the
# whole ./web directory (rather than cherry-picking subdirectories)
# avoids repeated "module not found" errors every time a new top-level
# dir/file is added (features/, types/, proxy.ts, tsconfig.json, etc.
# all bit us individually before this). node_modules and .next are
# re-mounted as anonymous volumes immediately after so the image's
# own copies (installed at build time) win over the (probably absent
# or stale) host versions — Compose applies volumes in order, so the
# more specific mounts below take precedence over the bind mount above.
- ./web:/app/web:ro
- /app/web/node_modules
- /app/web/.next
# Mount data directories (writable) - output to local ./data
- ./data/user:/app/data/user
- ./data/memory:/app/data/memory
- ./data/knowledge_bases:/app/data/knowledge_bases
# In development, we might want to see logs directly
# Uncomment the following to disable log files and see everything in console
# logging:
# driver: "json-file"
# options:
# max-size: "10m"
# max-file: "3"
networks:
- deeptutor-network