-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
45 lines (39 loc) · 1.08 KB
/
Copy pathdocker-compose.yml
File metadata and controls
45 lines (39 loc) · 1.08 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
version: '3.8'
services:
nordic-registry-mcp:
build: .
image: nordic-registry-mcp-server:latest
container_name: nordic-registry-mcp-server
ports:
- "8080:8080"
environment:
# Optional: Bolagsverket (Sweden) OAuth2 credentials; Norway, Denmark
# and Finland registries need no auth
- BOLAGSVERKET_CLIENT_ID=${BOLAGSVERKET_CLIENT_ID:-}
- BOLAGSVERKET_CLIENT_SECRET=${BOLAGSVERKET_CLIENT_SECRET:-}
# Optional: Bearer token for HTTP auth
- MCP_AUTH_TOKEN=${MCP_AUTH_TOKEN:-}
# Resource limits (adjust as needed)
deploy:
resources:
limits:
cpus: '0.5'
memory: 128M
reservations:
cpus: '0.1'
memory: 32M
# Health check
healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:8080/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 5s
# Restart policy
restart: unless-stopped
# Security
security_opt:
- no-new-privileges:true
read_only: true
tmpfs:
- /tmp