-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.prod.yml
More file actions
49 lines (46 loc) · 1.17 KB
/
docker-compose.prod.yml
File metadata and controls
49 lines (46 loc) · 1.17 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
version: '3.8'
services:
mcp-server-full:
build:
context: .
args:
PORT: ${PORT:-3000}
ports:
- "${PORT:-3000}:${PORT:-3000}"
env_file:
- .env
environment:
- NODE_ENV=production
- DEBUG=false
- REDIS_URL=redis://redis:6379
- ENABLE_HTTPS=true # MANDATORY for production
- OAUTH_ISSUER=https://studio.mittwald.de/default
- OAUTH_REDIRECT_URI=https://your-mcp-server.com/auth/callback
- JWT_SECRET=${JWT_SECRET} # Use strong secret from environment
healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "https://127.0.0.1:${PORT:-3000}/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
restart: unless-stopped
depends_on:
- redis
volumes:
# SSL certificates REQUIRED for production
- ./ssl:/app/ssl:ro
redis:
image: redis:7-alpine
ports:
- "6379:6379"
volumes:
- redis-data:/data
command: >
redis-server
--maxmemory 512mb
--maxmemory-policy volatile-lru
--appendonly yes
--appendfsync everysec
restart: unless-stopped
volumes:
redis-data: