-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
46 lines (44 loc) · 1.54 KB
/
Copy pathdocker-compose.dev.yml
File metadata and controls
46 lines (44 loc) · 1.54 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
services:
simon-dev:
build:
context: .
dockerfile: Dockerfile.dev
container_name: simon-dev
ports:
- "3000:3000" # Core API
- "5173:5173" # UI Dev Server
volumes:
# Mount source code for hot reload (exclude node_modules)
- .:/app
# Use named volume for node_modules to preserve installed packages
- simon-node-modules:/app/node_modules
# Mount repository to analyze (read-only)
- ${REPO_PATH:-.}:/workspace:ro
# Mount SIMON storage (persistent) - use /app/.simon instead of /workspace/.simon (workspace is read-only)
- simon-storage:/app/.simon
environment:
- NODE_ENV=development
- SIMON_REPO_PATH=/workspace
- SIMON_STORAGE_PATH=/app/.simon
- SIMON_LLM_PROVIDER=${SIMON_LLM_PROVIDER:-local}
- SIMON_LLM_API_KEY=${SIMON_LLM_API_KEY:-}
- SIMON_LLM_MODEL=${SIMON_LLM_MODEL:-glm-4.7-flash-claude-opus-4.5-high-reasoning-distill}
- SIMON_LLM_BASE_URL=${SIMON_LLM_BASE_URL:-http://host.docker.internal:1234/v1}
# Install dependencies and start development servers (hot reload enabled)
# Use the start-dev.sh script to run both Core API and UI in parallel
command: sh -c "cd /app && npm install --workspaces && /app/scripts/start-dev.sh"
# Keep container running
stdin_open: true
tty: true
networks:
- simon-network
# Restart policy for development
restart: unless-stopped
volumes:
simon-storage:
driver: local
simon-node-modules:
driver: local
networks:
simon-network:
driver: bridge