dgx-spark-playbooks/community/litguard/docker-compose.yaml
prashantkul 78213ac8a8 Add LitGuard playbook: prompt injection detection on DGX Spark
LitServe-based prompt injection detection server with a React monitoring
dashboard. Serves HuggingFace classification models behind an
OpenAI-compatible API with real-time metrics and GPU acceleration.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-10 21:36:27 -07:00

32 lines
568 B
YAML

services:
backend:
build: .
ports:
- "8234:8234"
volumes:
- model-cache:/root/.cache/huggingface
environment:
- DEVICE=cuda:0
- LITGUARD_CONFIG=/app/config.yaml
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: 1
capabilities: [gpu]
restart: unless-stopped
ui:
build:
context: .
dockerfile: Dockerfile.ui
ports:
- "3000:80"
depends_on:
- backend
restart: unless-stopped
volumes:
model-cache: