-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
72 lines (68 loc) · 1.91 KB
/
Copy pathdocker-compose.dev.yml
File metadata and controls
72 lines (68 loc) · 1.91 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
#
# Code Analyzer — Development Docker Compose
#
# Features:
# - Hot-reload via mounted source volumes (tsc --watch in container)
# - Exposed debug ports for Node.js inspector
# - Local SQLite persistence with host-mounted volume
# - No resource limits (for profiling and debugging)
#
# Usage:
# docker compose -f docker-compose.yml -f docker-compose.dev.yml up
# docker compose -f docker-compose.yml -f docker-compose.dev.yml up --build
#
services:
code-analyzer-mcp:
build:
target: builder # Use builder stage with all dev deps
environment:
NODE_ENV: development
LOG_LEVEL: debug
# Enable Node.js inspector for debugging
NODE_OPTIONS: "--inspect=0.0.0.0:9229"
ports:
- "3000:3000"
- "9229:9229" # Node.js debugger
volumes:
# Mount source for hot-reload (tsc --watch)
- .:/app:rw
# Exclude node_modules from host to prevent conflicts
- /app/node_modules
- /app/packages/*/node_modules
- graph-data:/app/data/graph
command: >
sh -c "pnpm turbo build && node packages/mcp/dist/start.js"
deploy:
resources:
limits:
cpus: "4"
memory: 4G
restart: "no" # Don't restart during development
code-analyzer-server:
build:
target: builder
environment:
NODE_ENV: development
LOG_LEVEL: debug
NODE_OPTIONS: "--inspect=0.0.0.0:9230"
ports:
- "3001:3001"
- "9230:9230" # Node.js debugger for server
volumes:
- .:/app:rw
- /app/node_modules
- /app/packages/*/node_modules
command: >
sh -c "pnpm turbo build && node packages/server/dist/start.js"
deploy:
resources:
limits:
cpus: "4"
memory: 4G
restart: "no"
networks:
analyzer-net:
driver: bridge
volumes:
graph-data:
driver: local