Files
finn-mcp/docker-compose.prod.yml
T
ole 55d93894ac feat(refactor): Document refactoring progress and phases in markdown
feat(scripts): Add backfill script for content_hash in cache tables

feat(scripts): Create recompute script for analysis_cache population

test(tests): Implement comprehensive tests for analysis module functions

fix(tests): Update CLI tests to assert errors on stderr instead of stdout

fix(tests): Adjust MCP integration tests to pass context parameter correctly

fix(tests): Modify service tests to return hash on save functions for consistency
2026-05-29 15:16:57 +00:00

71 lines
1.8 KiB
YAML

# Production configuration for docker-compose
# Usage: docker-compose -f docker-compose.yml -f docker-compose.prod.yml up -d
version: '3.9'
services:
mcp-server:
# Production image should be pre-built and tagged
image: finn-mcp:latest
# Environment overrides for production
environment:
PYTHONUNBUFFERED: 1
# Expose port for network access
ports:
- "8011:8010"
# More aggressive resource limits for production
# deploy:
# resources:
# limits:
# cpus: '4'
# memory: 2G
# reservations:
# cpus: '2'
# memory: 1G
# Restart policy
restart: always
# Security options
security_opt:
- no-new-privileges:true
# Read-only root filesystem (if cache is not persistent)
# read_only: true
# Logging configuration for production
logging:
driver: "json-file"
options:
max-size: "100m"
max-file: "10"
labels: "service=finn-mcp"
# Labels for monitoring/metadata
labels:
com.example.description: "FINN Eiendom.no MCP Server"
com.example.version: "0.1.0"
maintainer: "your-email@example.com"
# Example reverse proxy configuration (nginx):
# Place this on your host server
# server {
# listen 8010;
# server_name your-domain.com;
#
# location / {
# proxy_pass http://localhost:8010;
# proxy_http_version 1.1;
# proxy_set_header Upgrade $http_upgrade;
# proxy_set_header Connection "upgrade";
# proxy_set_header Host $host;
# proxy_set_header X-Real-IP $remote_addr;
# proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
# proxy_set_header X-Forwarded-Proto $scheme;
# proxy_read_timeout 86400;
# }
# }