Status: [LIVE] Endpoints found: https://build.nvidia.com/spark/vllm Source: https://github.com/sse-secure-systems/selfhost-ai # Self-Host AI A self-hosted LLM inference server exposing an **OpenAI-compatible Chat Completions API**, fronted by a Caddy reverse proxy and protected by GPU thermal monitoring. The repository ships ready-to-use compose templates for a selection of models, but is not limited to them — any model supported by vLLM can be added by following the same pattern. All services are deployed via **Docker Compose**. --- ## Project Structure ```text selfhost-ai/ ├── .env.example # Template for all env variables (copy to .env) ├── requirements.txt # Python dependencies for the test client ├── Makefile # Root-level management commands (run make help) ├── models/ # Model weights — one subdirectory per model, │ # mounted read-only into the vLLM container │ └── vllm/ ├── deployment-templates/ # Per-model vLLM + Caddy Docker Compose stacks │ ├── Caddyfile │ └── docker-compose..yml # one file per model │ ├── testing/ # API smoke-test script │ └── test_llm_api.py │ └── thermal-guard/ # GPU temperature monitoring & auto-shutdown └── docker/ # Docker Compose-based deployment ├── Dockerfile ├── docker-compose.thermal.yml ├── thermal-guard-docker.sh └── README-docker.md ``` --- ## Tech Stack | Component | Image / Tool | |-----------|-------------| | Inference engine | `nvcr.io/nvidia/vllm:26.01-py3` (Qwen3.6-27B uses `26.04-py3`; Qwen3.8 NVFP4 uses `vllm/vllm-openai:qwen38`) | | Reverse proxy | `caddy:latest` | | GPU metrics | `nvidia/dcgm-exporter:4.5.2-4.8.1-ubuntu22.04` | | Thermal guard | `alpine:latest` (custom script) | | Orchestration | Docker Compose v2 | --- ## Prerequisites