-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
92 lines (87 loc) · 3.26 KB
/
Copy pathdocker-compose.yml
File metadata and controls
92 lines (87 loc) · 3.26 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
services:
# ── FUTURE: Redis (BullMQ job queue) ────────────────────────────────────────
# Re-enable when adding job durability and retries. Also restore REDIS_HOST /
# REDIS_PORT in the server environment below and uncomment the redis dependency.
#
# redis:
# image: redis:7-alpine
# restart: unless-stopped
# ports:
# - "6379:6379"
# healthcheck:
# test: ["CMD", "redis-cli", "ping"]
# interval: 10s
# timeout: 3s
# retries: 5
# ── Python Analyzer microservice ────────────────────────────────────────────
analyzer:
build:
context: ./analyzer
dockerfile: Dockerfile
restart: unless-stopped
ports:
- "8000:8000"
environment:
DEEPSEEK_API_KEY: ${DEEPSEEK_API_KEY}
DEEPSEEK_MODEL: ${DEEPSEEK_MODEL:-deepseek-v4-pro}
DEEPSEEK_DECOMPILE_MODEL: ${DEEPSEEK_DECOMPILE_MODEL:-deepseek-v4-pro}
ANALYZER_API_KEY: ${ANALYZER_API_KEY:-}
GITHUB_TOKEN: ${GITHUB_TOKEN:-}
INGEST_SINCE: ${INGEST_SINCE:-2021-01-01}
INGEST_MAX_REPOS: ${INGEST_MAX_REPOS:-200}
volumes:
# Named volumes persist ChromaDB across container restarts and rebuilds.
# On first boot the entrypoint auto-runs ingest_all in the background.
# On subsequent boots it detects the existing DB and skips ingest.
- chroma_data:/app/analyzer/rag/chroma_db
- training_data:/app/analyzer/rag/training_data
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/"]
interval: 30s
timeout: 5s
# API starts immediately; ingest runs in background — no need for long start_period
start_period: 30s
retries: 5
# ── NestJS Orchestrator ─────────────────────────────────────────────────────
server:
build:
context: ./server
dockerfile: Dockerfile
restart: unless-stopped
ports:
- "3001:3001"
environment:
PORT: 3001
DATABASE_URL: ${DATABASE_URL}
MANTLE_SEPOLIA_RPC_URL: ${MANTLE_SEPOLIA_RPC_URL}
MANTLESCAN_API_KEY: ${MANTLESCAN_API_KEY}
POOL_ADDRESS: ${POOL_ADDRESS}
ESCROW_ADDRESS: ${ESCROW_ADDRESS}
AGENT_PRIVATE_KEY: ${AGENT_PRIVATE_KEY}
DEEPSEEK_API_KEY: ${DEEPSEEK_API_KEY}
ANALYZER_SERVICE_URL: http://analyzer:8000
ANALYZER_API_KEY: ${ANALYZER_API_KEY:-}
# FUTURE: restore when Redis is re-enabled
# REDIS_HOST: redis
# REDIS_PORT: 6379
depends_on:
analyzer:
condition: service_healthy
# FUTURE: restore when Redis is re-enabled
# redis:
# condition: service_healthy
# ── Next.js Dashboard ───────────────────────────────────────────────────────
client:
build:
context: ./client
dockerfile: Dockerfile
restart: unless-stopped
ports:
- "3000:3000"
environment:
NEXT_PUBLIC_API_URL: http://server:3001
depends_on:
- server
volumes:
chroma_data:
training_data: