-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-compose.https.yml
More file actions
49 lines (46 loc) · 1.43 KB
/
docker-compose.https.yml
File metadata and controls
49 lines (46 loc) · 1.43 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
# PubMed Search MCP Server - HTTPS Deployment
# Uses Nginx reverse proxy for TLS termination
services:
# ==========================================================================
# Nginx Reverse Proxy (HTTPS)
# ==========================================================================
nginx:
image: nginx:alpine
ports:
- "443:443" # HTTPS
- "80:80" # HTTP (redirects to HTTPS)
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf:ro
- ./nginx/ssl:/etc/nginx/ssl:ro
depends_on:
pubmed-mcp:
condition: service_healthy
restart: unless-stopped
healthcheck:
test: ["CMD", "wget", "-q", "--spider", "http://localhost:80/"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
# ==========================================================================
# PubMed Search MCP Server
# ==========================================================================
pubmed-mcp:
build: .
expose:
- "8765" # Internal only, not exposed to host
environment:
- NCBI_EMAIL=${NCBI_EMAIL:-pubmed-search@example.com}
- NCBI_API_KEY=${NCBI_API_KEY:-}
- MCP_PORT=8765
- MCP_HOST=0.0.0.0
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-sf", "http://localhost:8765/"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
networks:
default:
name: pubmed-mcp-network