- Legacy frontend removed: React SPA served at / (no /app/ prefix) - Compliance report ZIP: Chromium headless --print-to-pdf (identical to browser) + CSV findings - Server-side generation state: .compliance_generating marker survives page navigation - RAG enriched: Description + Rationale + Remediation + Audit extracted from CIS vector chunks - Chat markdown: syntax highlighting (Catppuccin), styled headings/lists/tables/blockquotes/code - Default model auto-selected on Chat Agent load
45 lines
1.1 KiB
YAML
45 lines
1.1 KiB
YAML
services:
|
|
backend:
|
|
build:
|
|
context: ./backend
|
|
dockerfile: Dockerfile
|
|
container_name: oci-agent-backend
|
|
restart: unless-stopped
|
|
environment:
|
|
- APP_SECRET=${APP_SECRET:-change-me-in-production-use-a-long-random-string}
|
|
- JWT_EXPIRY_HOURS=${JWT_EXPIRY_HOURS:-12}
|
|
- DATA_DIR=/data
|
|
- OCI_CLI_SUPPRESS_FILE_PERMISSIONS_WARNING=True
|
|
volumes:
|
|
- agent-data:/data
|
|
networks:
|
|
- agent-net
|
|
healthcheck:
|
|
test: ["CMD", "curl", "-f", "http://localhost:8000/api/health"]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 3
|
|
|
|
frontend:
|
|
image: nginx:alpine
|
|
container_name: oci-agent-frontend
|
|
restart: unless-stopped
|
|
volumes:
|
|
- ./frontend-react/dist:/usr/share/nginx/html/app:ro
|
|
- ./nginx/default.conf:/etc/nginx/conf.d/default.conf:ro
|
|
# Note: nginx root points to /usr/share/nginx/html/app (React dist)
|
|
ports:
|
|
- "${PORT:-8080}:80"
|
|
depends_on:
|
|
- backend
|
|
networks:
|
|
- agent-net
|
|
|
|
volumes:
|
|
agent-data:
|
|
driver: local
|
|
|
|
networks:
|
|
agent-net:
|
|
driver: bridge
|