Files
redactor-mcp/docker-compose.yml
2026-12-03 23:38:48 +00:00

43 lines
1.5 KiB
YAML

services:
redactor-vault:
build:
context: .
args:
# Set to "true" at build time if you want offline Presidio + spaCy NER for unstructured text
INSTALL_NER: "false"
# Set to "true" at build time for PDF/DOCX/XLSX extraction (pypdf, python-docx, openpyxl)
INSTALL_DOCS: "false"
container_name: pii-redactor
restart: unless-stopped
healthcheck:
test: ["CMD", "redactor-mcp", "status"]
interval: 30s
timeout: 5s
retries: 3
start_period: 5s
# Zero network egress: container cannot phone home or leak PII over the network
network_mode: none
read_only: true
cap_drop:
- ALL
security_opt:
- no-new-privileges:true
# Vault socket and session state live strictly in RAM
tmpfs:
- /run/vault:rw,noexec,nosuid,size=64m,uid=10001,gid=10001
- /tmp:rw,noexec,nosuid,size=64m,uid=10001,gid=10001
environment:
REDACTOR_SOCKET: /run/vault/daemon.sock
REDACTOR_AUDIT_LOG: /run/vault/audit.jsonl
REDACTOR_READ_ROOTS: /data/sensitive
REDACTOR_STAGING_ROOT: /data/clean
REDACTOR_OUTPUT_ROOTS: /data/output
REDACTOR_ALLOW_EXEC: "true"
REDACTOR_SESSION_TTL: "14400"
REDACTOR_ENABLE_NER: "false"
volumes:
# Adjust host paths below to your WSL2 or /mnt/c/ directories
- ${REDACTOR_SENSITIVE_DIR:-./work/sensitive}:/data/sensitive:ro
- ${REDACTOR_CLEAN_DIR:-./work/clean-staging}:/data/clean:rw
- ${REDACTOR_OUTPUT_DIR:-./work/final-output}:/data/output:rw