forked from johnfkraus/docsray-mcp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
116 lines (110 loc) · 2.9 KB
/
docker-compose.yml
File metadata and controls
116 lines (110 loc) · 2.9 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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
# Docker Compose for Docsray MCP Server
# Production and development configurations
version: '3.8'
services:
# Production MCP server (stdio mode)
docsray-mcp:
build:
context: .
dockerfile: Dockerfile
target: runtime
container_name: docsray-mcp
restart: unless-stopped
environment:
- DOCSRAY_TRANSPORT=stdio
- DOCSRAY_LOG_LEVEL=INFO
- DOCSRAY_PYMUPDF_ENABLED=true
- DOCSRAY_CACHE_ENABLED=true
- DOCSRAY_CACHE_TTL=3600
volumes:
# Mount cache directory for persistence
- docsray-cache:/app/cache
# Mount logs directory
- docsray-logs:/app/logs
# Mount data directory for document processing
- docsray-data:/app/data
stdin_open: true
tty: true
networks:
- docsray-network
# HTTP mode server (for web integrations)
docsray-http:
build:
context: .
dockerfile: Dockerfile
target: runtime
container_name: docsray-http
restart: unless-stopped
ports:
- "3010:3010"
environment:
- DOCSRAY_TRANSPORT=http
- DOCSRAY_HTTP_HOST=0.0.0.0
- DOCSRAY_HTTP_PORT=3010
- DOCSRAY_LOG_LEVEL=INFO
- DOCSRAY_PYMUPDF_ENABLED=true
- DOCSRAY_CACHE_ENABLED=true
volumes:
- docsray-cache:/app/cache
- docsray-logs:/app/logs
- docsray-data:/app/data
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3000/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
networks:
- docsray-network
# Development server with all features enabled (including PaddleOCR for local testing)
docsray-dev:
build:
context: .
dockerfile: Dockerfile
target: development
container_name: docsray-dev
restart: unless-stopped
ports:
- "3011:3010"
environment:
- DOCSRAY_TRANSPORT=http
- DOCSRAY_HTTP_HOST=0.0.0.0
- DOCSRAY_HTTP_PORT=3010
- DOCSRAY_LOG_LEVEL=DEBUG
- DOCSRAY_PYMUPDF_ENABLED=true
- DOCSRAY_PYTESSERACT_ENABLED=true
- DOCSRAY_PADDLEOCR_ENABLED=true
- DOCSRAY_PADDLEOCR_LANG=en
- DOCSRAY_PADDLEOCR_ENABLE_TABLE=true
- DOCSRAY_CACHE_ENABLED=true
# Add your API keys via .env file or environment
# - DOCSRAY_LLAMAPARSE_API_KEY=${LLAMAPARSE_API_KEY}
- DOCSRAY_MISTRAL_API_KEY=${MISTRAL_API_KEY}
- DOCSRAY_MISTRAL_ENABLED=true
- DOCSRAY_MIMIC_ENABLED=true
volumes:
# Mount source code for development
- .:/app
- docsray-cache:/app/cache
- docsray-logs:/app/logs
- docsray-data:/app/data
stdin_open: true
tty: true
networks:
- docsray-network
profiles:
- dev
networks:
docsray-network:
driver: bridge
name: docsray-network
volumes:
docsray-cache:
driver: local
name: docsray-cache
docsray-logs:
driver: local
name: docsray-logs
docsray-data:
driver: local
name: docsray-data