-
-
Notifications
You must be signed in to change notification settings - Fork 28
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
43 lines (36 loc) · 1.55 KB
/
docker-compose.dev.yml
File metadata and controls
43 lines (36 loc) · 1.55 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
# Development overrides - hot reload and source mounts
# Usage: docker compose -f docker-compose.yml -f docker-compose.dev.yml up
#
# Prerequisites:
# - Build MCP servers locally first:
# cd apps/airis-commands && npm install && npm run build
# cd apps/gateway-control && npm install && npm run build
services:
api:
# Use pre-built image, override command for hot reload
command: ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000", "--reload"]
volumes:
# Config files (same as prod)
- ./mcp-config.json:/app/mcp-config.json:ro
- ./config/gateway-config.yaml:/app/config/gateway-config.yaml:ro
- ./profiles:/app/profiles:rw
# Persistent data (same as prod)
- cache-uv:/root/.cache/uv
- cache-npm:/root/.npm
- memory-data:/app/data
# Workflows (same as prod)
- ./workflows:/app/workflows:ro
# DEV: Mount Python source for hot reload
- ./apps/api/src/app:/app/api-src/src/app:ro
# DEV: Mount Node dist folders from host (rebuild locally, changes reflect immediately)
- ./apps/gateway-control/dist:/app/gateway-control:ro
- ./apps/airis-commands/dist:/app/airis-commands:ro
environment:
# Inherit all env vars from base, add dev-specific ones
- MCP_GATEWAY_URL=http://gateway:9390
- MCP_CONFIG_PATH=/app/mcp-config.json
- GATEWAY_CONFIG_PATH=/app/config/gateway-config.yaml
- SERENA_MODE=${SERENA_MODE:-serena-local}
# DEV: Enable Python debug logging
- PYTHONDONTWRITEBYTECODE=1
- PYTHONUNBUFFERED=1