Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
Ole
2026-05-18 21:31:52 +00:00
parent 6eedfffa4d
commit c9383788de
22 changed files with 1614 additions and 42 deletions
+57
View File
@@ -0,0 +1,57 @@
version: '3.9'
services:
mcp-server:
build:
context: .
dockerfile: Dockerfile
container_name: finn-mcp-server
# Environment configuration
environment:
# MCP HTTP server configuration
MCP_HOST: 0.0.0.0
MCP_PORT: 8010
# Python configuration
PYTHONUNBUFFERED: 1
# Optional: FINN/Eiendom.no rate limiting and retry configuration
# FINN_RATE_LIMIT_DELAY: 0.5
# HTTP_TIMEOUT: 30
# HTTP_MAX_RETRIES: 3
# Port mapping for HTTP access
ports:
- "8010:8010"
# Health check
healthcheck:
test: ["CMD", "python", "-c", "import requests; requests.get('http://localhost:8010/health', timeout=5)"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
# Resource limits (adjust based on your server)
deploy:
resources:
limits:
cpus: '2'
memory: 1G
reservations:
cpus: '1'
memory: 512M
# Restart policy
restart: unless-stopped
# Logging configuration
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
# For development, you can override with:
# docker-compose -f docker-compose.yml -f docker-compose.override.yml up