version: '3.8'
services:
mcp-presidio:
build:
context: .
dockerfile: Dockerfile
image: mcp-presidio:latest
container_name: mcp-presidio
# By default, the container runs in stdio mode
# You can override the command if needed
# command: ["python", "-m", "mcp_presidio.server"]
stdin_open: true # Keep stdin open for stdio transport
tty: true # Allocate a pseudo-TTY for stdio transport
environment:
- PYTHONUNBUFFERED=1
# If you need to mount custom configurations or data
# volumes:
# - ./config:/app/config:ro
# - ./data:/app/data
# Resource limits (adjust as needed)
deploy:
resources:
limits:
cpus: '2'
memory: 2G
reservations:
cpus: '1'
memory: 1G
restart: unless-stopped
# For debugging purposes, you can use this to keep the container running
# command: ["tail", "-f", "/dev/null"]