-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
50 lines (43 loc) · 1.56 KB
/
docker-compose.dev.yml
File metadata and controls
50 lines (43 loc) · 1.56 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
# ============================================
# DeepTutor Docker Compose - Development Override
# ============================================
# Use with: docker compose -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:
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 frontend source for hot-reload
- ./web/app:/app/web/app:ro
- ./web/components:/app/web/components:ro
- ./web/lib:/app/web/lib:ro
- ./web/hooks:/app/web/hooks:ro
- ./web/context:/app/web/context:ro
- ./web/i18n:/app/web/i18n:ro
- ./web/locales:/app/web/locales:ro
- ./web/public:/app/web/public:ro
# Mount data directories (writable) - output to local ./data
- ./data/user:/app/data/user
- ./data/knowledge_bases:/app/data/knowledge_bases
environment:
- NODE_ENV=development
- NEXT_PUBLIC_API_BASE=http://localhost:${BACKEND_PORT:-8001}
# 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