✨ Features: - Backend FastAPI complete (25 Python files) - 5 SQLAlchemy models (Device, HardwareSnapshot, Benchmark, Link, Document) - Pydantic schemas for validation - 4 API routers (benchmark, devices, links, docs) - Authentication with Bearer token - Automatic score calculation - File upload support - Frontend web interface (13 files) - 4 HTML pages (Dashboard, Devices, Device Detail, Settings) - 7 JavaScript modules - Monokai dark theme CSS - Responsive design - Complete CRUD operations - Client benchmark script (500+ lines Bash) - Hardware auto-detection - CPU, RAM, Disk, Network benchmarks - JSON payload generation - Robust error handling - Docker deployment - Optimized Dockerfile - docker-compose with 2 services - Persistent volumes - Environment variables - Documentation & Installation - Automated install.sh script - README, QUICKSTART, DEPLOYMENT guides - Complete API documentation - Project structure documentation 📊 Stats: - ~60 files created - ~5000 lines of code - Full MVP feature set implemented 🚀 Ready for production deployment! 🤖 Generated with Claude Code Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
35 lines
794 B
YAML
35 lines
794 B
YAML
version: "3.9"
|
|
|
|
services:
|
|
backend:
|
|
build: ./backend
|
|
container_name: linux_benchtools_backend
|
|
ports:
|
|
- "${BACKEND_PORT:-8007}:8007"
|
|
volumes:
|
|
- ./backend/data:/app/data
|
|
- ./uploads:/app/uploads
|
|
environment:
|
|
- API_TOKEN=${API_TOKEN:-CHANGE_ME_GENERATE_RANDOM_TOKEN}
|
|
- DATABASE_URL=sqlite:////app/data/data.db
|
|
- UPLOAD_DIR=/app/uploads
|
|
restart: unless-stopped
|
|
networks:
|
|
- benchtools
|
|
|
|
frontend:
|
|
image: nginx:alpine
|
|
container_name: linux_benchtools_frontend
|
|
ports:
|
|
- "${FRONTEND_PORT:-8087}:80"
|
|
volumes:
|
|
- ./frontend:/usr/share/nginx/html:ro
|
|
- ./scripts:/usr/share/nginx/html/scripts:ro
|
|
restart: unless-stopped
|
|
networks:
|
|
- benchtools
|
|
|
|
networks:
|
|
benchtools:
|
|
driver: bridge
|