- FastAPI backend: auth, findings, dashboard, attack paths, footprint, AI translator, risk calculator, PDF report generator - Next.js frontend: Vault dashboard, login, findings table, finding detail with AI coach, digital footprint, reports - PostgreSQL data model: tenants, users, assets, findings, risk scores, audit reports, attack paths - Docker Compose + Dockerfiles for all services - Demo seed data: Acme Corp with 6 findings and 90-day risk score history - AI Risk Translator (OpenAI/Anthropic) with plain-English business impact - Role-based access: executive / it_admin / trustos_admin - Scope-lock engine: authorization required before any assessment Stage 1-8 complete: Phase 1 Vault Audit product ready
60 lines
1.4 KiB
YAML
60 lines
1.4 KiB
YAML
services:
|
|
postgres:
|
|
image: postgres:16-alpine
|
|
container_name: trustos_postgres
|
|
environment:
|
|
POSTGRES_USER: trustos
|
|
POSTGRES_PASSWORD: trustos_dev
|
|
POSTGRES_DB: trustos
|
|
ports:
|
|
- "5432:5432"
|
|
volumes:
|
|
- pgdata:/var/lib/postgresql/data
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "pg_isready -U trustos -d trustos"]
|
|
interval: 5s
|
|
timeout: 5s
|
|
retries: 10
|
|
|
|
backend:
|
|
build:
|
|
context: ../backend
|
|
dockerfile: ../infra/Dockerfile.backend
|
|
container_name: trustos_backend
|
|
env_file:
|
|
- ../backend/.env
|
|
environment:
|
|
DATABASE_URL: postgresql+asyncpg://trustos:trustos_dev@postgres:5432/trustos
|
|
SYNC_DATABASE_URL: postgresql://trustos:trustos_dev@postgres:5432/trustos
|
|
STORAGE_PATH: /app/storage
|
|
ports:
|
|
- "8000:8000"
|
|
volumes:
|
|
- ../backend:/app
|
|
- storage:/app/storage
|
|
depends_on:
|
|
postgres:
|
|
condition: service_healthy
|
|
command: uvicorn app.main:app --host 0.0.0.0 --port 8000 --reload
|
|
|
|
frontend:
|
|
build:
|
|
context: ../frontend
|
|
dockerfile: ../infra/Dockerfile.frontend
|
|
container_name: trustos_frontend
|
|
environment:
|
|
NEXT_PUBLIC_API_URL: http://localhost:8000
|
|
ports:
|
|
- "3000:3000"
|
|
volumes:
|
|
- ../frontend:/app
|
|
- /app/node_modules
|
|
- /app/.next
|
|
depends_on:
|
|
- backend
|
|
command: npm run dev
|
|
|
|
volumes:
|
|
pgdata:
|
|
storage:
|