stage-8: deployable platform — Dockerfile + compose for company-network deploy

Lean python:3.12-slim platform image (cockpit + CLI + workers, 214 MB — no GPU,
no model). docker-compose.yml runs cockpit + mock-cert on a persistent
psyc-data volume. DATA_DIR is now overridable via PSYC_DATA_DIR so the
container's data path is explicit. docs/deploy.md covers Proxmox hosting,
first-run ingestion, and the honest caveats — no built-in auth (deploy behind
the perimeter), the GPU model server is separate, egress-proxy config.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
m17hr1l
2026-05-18 21:53:03 +02:00
parent f1449af45b
commit e54242178f
4 changed files with 145 additions and 1 deletions

View File

@@ -1,9 +1,12 @@
"""psyc — defensive CTI routing & evidence-sealing platform."""
import os
from pathlib import Path
__version__ = "0.1.0"
PROJECT_ROOT = Path(__file__).resolve().parent.parent.parent
DATA_DIR = PROJECT_ROOT / "data"
# PSYC_DATA_DIR lets a container/deployment set the data path explicitly;
# otherwise data lives next to the repo (works for an editable install).
DATA_DIR = Path(os.environ["PSYC_DATA_DIR"]) if os.environ.get("PSYC_DATA_DIR") else PROJECT_ROOT / "data"