-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
59 lines (54 loc) · 1.87 KB
/
Copy pathdocker-compose.yml
File metadata and controls
59 lines (54 loc) · 1.87 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
x-app: &app
image: omnirag:local
build:
context: .
dockerfile: Dockerfile
env_file:
- .env
restart: unless-stopped
logging:
driver: json-file
options:
max-size: "10m"
max-file: "3"
services:
# ── Telegram / Slack / Discord bot ────────────────────────────────────────
# Set CHAT_PROVIDER=telegram|slack|discord in .env
omnirag-bot:
<<: *app
volumes:
- ./data:/app/data:ro
- ./user:/app/user:ro
# ── Web UI + REST API ──────────────────────────────────────────────────────
# Browser · Telegram Mini App · Tauri · React Native → GET / or POST /api/chat
omnirag-web:
<<: *app
environment:
CHAT_PROVIDER: web
ports:
- "${WEB_PORT:-8000}:8000"
volumes:
- ./data:/app/data:ro
- ./user:/app/user:ro
# ── MCP server (SSE transport) ────────────────────────────────────────────
# Claude Desktop / Cursor / any MCP client → http://localhost:8001/sse
omnirag-mcp:
<<: *app
environment:
CHAT_PROVIDER: mcp
MCP_TRANSPORT: sse
ports:
- "${MCP_PORT:-8001}:8001"
volumes:
- ./data:/app/data:ro
- ./user:/app/user:ro
# ── Indexer (one-off, run via: task index) ────────────────────────────────
indexer:
<<: *app
entrypoint: ["python", "-m", "scripts.indexer"]
restart: "no"
volumes:
- ./data:/app/data # rw — writes faiss.index, chunks_meta.json, embed_cache.json
- ./docs:/app/docs:ro # put your .md / .txt / .pdf files here
profiles:
- tools