-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
78 lines (74 loc) · 1.89 KB
/
Copy pathdocker-compose.yml
File metadata and controls
78 lines (74 loc) · 1.89 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
# ================================================
# MCP Stack - Unified Proxy (Streamable HTTP)
# ================================================
services:
# Context7 MCP Server (HTTP)
context7:
image: acuvity/mcp-server-context-7:latest
restart: unless-stopped
ports:
- "${CONTEXT7_EXT_PORT}:${INTERNAL_PORT}"
environment:
- PORT=${INTERNAL_PORT}
- CONTEXT7_API_KEY=${CONTEXT7_API_KEY}
read_only: true
tmpfs:
- /tmp:rw,size=256m,noexec
cap_drop:
- ALL
security_opt:
- no-new-privileges:true
mem_limit: 1g
healthcheck:
test: ["CMD", "wget", "-qO-", "http://localhost:${CONTEXT7_HEALTH_PORT}/"]
interval: 5s
timeout: 5s
retries: 5
networks:
- mcp_net
# SearXNG MCP Server (HTTP)
searxng:
image: isokoliuk/mcp-searxng:latest
restart: unless-stopped
ports:
- "${SEARXNG_EXT_PORT}:${INTERNAL_PORT}"
environment:
- SEARXNG_URL=${SEARXNG_URL}
- TZ=Europe/Berlin
- MCP_HTTP_PORT=${INTERNAL_PORT}
read_only: true
tmpfs:
- /tmp:rw,size=128m,noexec
cap_drop:
- ALL
security_opt:
- no-new-privileges:true
mem_limit: 512m
healthcheck:
test: ["CMD", "wget", "-qO-", "http://localhost:${INTERNAL_PORT}/health"]
interval: 5s
timeout: 5s
retries: 5
networks:
- mcp_net
# Unified Proxy (Nginx)
proxy:
image: nginx:alpine
ports:
- "${BIND_ADDRESS}:${GATEWAY_PORT}:${PROXY_INTERNAL_PORT}"
environment:
- INTERNAL_PORT=${INTERNAL_PORT}
- PROXY_INTERNAL_PORT=${PROXY_INTERNAL_PORT}
volumes:
- ./nginx.conf.template:/etc/nginx/templates/nginx.conf.template:ro
depends_on:
context7:
condition: service_healthy
searxng:
condition: service_healthy
restart: unless-stopped
networks:
- mcp_net
networks:
mcp_net:
driver: bridge