-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
75 lines (72 loc) · 2.6 KB
/
docker-compose.yml
File metadata and controls
75 lines (72 loc) · 2.6 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
services:
# ---------------------------------------------------------------------------
# Backend — FastAPI + ChromaDB + LLM extraction pipeline
#
# The LLM itself is NOT in this file. Choose one:
# - Host Ollama (Mac/Windows/Linux): default LLM_API_BASE points to host
# - Host MLX (Apple Silicon): set LLM_API_BASE to host MLX server
# - Containerized Ollama (Linux): add -f docker-compose.ollama.yml
# - NVIDIA GPU for container Ollama: also add -f docker-compose.gpu.yml
# ---------------------------------------------------------------------------
backend:
build:
context: ./backend
dockerfile: Dockerfile
ports:
- "${API_PORT:-8923}:8923"
volumes:
- backend_data:/app/data
env_file:
- path: .env
required: false
environment:
- LLM_API_BASE=${LLM_API_BASE:-http://host.docker.internal:11434/v1}
- LLM_API_KEY=${LLM_API_KEY:-}
- LLM_MODEL=${LLM_MODEL:-ollama/qwen3:8b}
- EMBEDDING_MODEL=${EMBEDDING_MODEL:-BAAI/bge-base-en-v1.5}
- GITHUB_TOKEN=${GITHUB_TOKEN:-}
- GITHUB_WEBHOOK_SECRET=${GITHUB_WEBHOOK_SECRET:-}
- FERNET_KEY=${FERNET_KEY:-}
- API_AUTH_TOKEN=${API_AUTH_TOKEN:-}
- CORS_ORIGINS=${CORS_ORIGINS:-http://localhost:4096,http://localhost:3000}
- DATA_DIR=/app/data
extra_hosts:
# Makes host.docker.internal resolve on Linux (no-op on Mac/Windows).
- "host.docker.internal:host-gateway"
healthcheck:
test: ["CMD-SHELL", "curl -sf http://localhost:8923/api/rules || exit 1"]
interval: 10s
timeout: 5s
retries: 10
start_period: 10s
# ---------------------------------------------------------------------------
# Web UI — Next.js dashboard
# ---------------------------------------------------------------------------
web-ui:
build:
context: ./web-ui
dockerfile: Dockerfile
args:
- NEXT_PUBLIC_API_URL=${NEXT_PUBLIC_API_URL:-http://localhost:8923}
ports:
- "${WEB_PORT:-4096}:3000"
depends_on:
backend:
condition: service_healthy
# ---------------------------------------------------------------------------
# MCP Server — TypeScript bridge for Cursor / Claude Code
# MCP uses stdio — run via: docker compose run --rm mcp-server
# ---------------------------------------------------------------------------
mcp-server:
build:
context: ./mcp-server
dockerfile: Dockerfile
environment:
- PR_DISTILLER_API_URL=http://backend:8923
depends_on:
- backend
stdin_open: true
profiles:
- mcp
volumes:
backend_data: