2025-12-31 13:32:46 -06:00
|
|
|
# ============================================
|
|
|
|
|
# DeepTutor Docker Compose - Development Override
|
|
|
|
|
# ============================================
|
|
|
|
|
# Use with: docker compose -f docker-compose.yml -f docker-compose.dev.yml up
|
2026-01-03 04:01:06 +08:00
|
|
|
#
|
|
|
|
|
# This override file provides:
|
|
|
|
|
# - Hot-reload for both frontend and backend
|
|
|
|
|
# - Source code mounting for live editing
|
|
|
|
|
# - Development-friendly logging
|
2025-12-31 13:32:46 -06:00
|
|
|
# ============================================
|
|
|
|
|
|
|
|
|
|
services:
|
|
|
|
|
deeptutor:
|
|
|
|
|
build:
|
|
|
|
|
target: development
|
2026-01-03 04:01:06 +08:00
|
|
|
|
2025-12-31 13:32:46 -06:00
|
|
|
volumes:
|
2026-03-13 23:48:49 +08:00
|
|
|
# Mount backend source code for hot-reload
|
|
|
|
|
- ./deeptutor:/app/deeptutor:ro
|
|
|
|
|
- ./deeptutor_cli:/app/deeptutor_cli:ro
|
2026-01-03 04:01:06 +08:00
|
|
|
- ./scripts:/app/scripts:ro
|
|
|
|
|
|
|
|
|
|
# Mount frontend source for hot-reload
|
2025-12-31 13:32:46 -06:00
|
|
|
- ./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
|
2026-03-13 23:48:49 +08:00
|
|
|
- ./web/i18n:/app/web/i18n:ro
|
|
|
|
|
- ./web/locales:/app/web/locales:ro
|
2025-12-31 13:32:46 -06:00
|
|
|
- ./web/public:/app/web/public:ro
|
2026-01-03 04:01:06 +08:00
|
|
|
|
|
|
|
|
# Mount data directories (writable) - output to local ./data
|
2025-12-31 13:32:46 -06:00
|
|
|
- ./data/user:/app/data/user
|
|
|
|
|
- ./data/knowledge_bases:/app/data/knowledge_bases
|
2026-01-03 04:01:06 +08:00
|
|
|
|
2025-12-31 13:32:46 -06:00
|
|
|
environment:
|
|
|
|
|
- NODE_ENV=development
|
2026-03-13 23:48:49 +08:00
|
|
|
- NEXT_PUBLIC_API_BASE=http://localhost:${BACKEND_PORT:-8001}
|
2026-01-03 04:01:06 +08:00
|
|
|
|
|
|
|
|
# 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"
|
|
|
|
|
|
2025-12-31 13:32:46 -06:00
|
|
|
networks:
|
|
|
|
|
- deeptutor-network
|