-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
62 lines (58 loc) · 1.62 KB
/
docker-compose.yml
File metadata and controls
62 lines (58 loc) · 1.62 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
version: '3.8'
services:
mcp-server-full:
build:
context: .
args:
PORT: ${PORT:-3000}
ports:
- "${PORT:-3000}:${PORT:-3000}"
- "3001:3001"
env_file:
- .env
environment:
- NODE_ENV=development
- DEBUG=true
- REDIS_URL=redis://redis:6379
- ENABLE_HTTPS=true # Set to true in production
- OAUTH_ISSUER=http://mock-oauth:8080/default
- OAUTH_REDIRECT_URI=https://localhost:3000/auth/callback # Use https:// in production
- JWT_SECRET=development-jwt-secret-key-for-testing
healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "--no-check-certificate", "https://127.0.0.1:${PORT:-3000}/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
restart: unless-stopped
depends_on:
- redis
- mock-oauth
volumes:
# Optional: mount logs directory for debugging
- ./logs:/app/logs
# Mount SSL certificates
- ./ssl:/app/ssl:ro
redis:
image: redis:7-alpine
ports:
- "6379:6379"
volumes:
- redis-data:/data
command: redis-server --maxmemory 256mb --maxmemory-policy allkeys-lru
restart: unless-stopped
mock-oauth:
image: ghcr.io/navikt/mock-oauth2-server:2.1.8
ports:
- "8080:8080"
environment:
- SERVER_PORT=8080
restart: unless-stopped
healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://127.0.0.1:8080/default/.well-known/openid_configuration"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
volumes:
redis-data: