プライベート GPU & セルフホストチーム AI ワークスペース
~$18/月 合計仮想キーの予算制限付きで、外部へのプロンプト漏洩ゼロの社内 ChatGPT + RAG ナレッジハブを構築。
- 想定ユーザー
- 1席あたり $20〜$30 の AI サブスクをプライベート GPU ホスティングで置き換えたい開発チーム・企業
- 推奨ホスト構成
- GPU VPS または専用ホスト (>= 24 GB RAM / VRAM) + Hetzner CX32(約$8.50〜$18/月 ゲートウェイ制御用)
- 合計最小 RAM
- 20.0 GB (20480 MB)
構成コンポーネント
データベース セルフホスト
PostgreSQL (Self-Hosted Docker)
LiteLLM の利用ログ、仮想キー、Open WebUI のワークスペース状態を永続化(約 512 MB RAM)。
スターター Docker Compose バンドル
docker-compose.yml
services:
postgres:
image: postgres:17-alpine
restart: unless-stopped
environment:
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: litellm
volumes:
- ai_pg_data:/var/lib/postgresql/data
qdrant:
image: qdrant/qdrant:latest
restart: unless-stopped
ports:
- "6333:6333"
volumes:
- qdrant_storage:/qdrant/storage
litellm:
image: ghcr.io/berriai/litellm:main-latest
restart: unless-stopped
ports:
- "4000:4000"
environment:
LITELLM_MASTER_KEY: ${LITELLM_MASTER_KEY}
DATABASE_URL: postgresql://postgres:${POSTGRES_PASSWORD}@postgres:5432/litellm
depends_on:
- postgres
open-webui:
image: ghcr.io/open-webui/open-webui:main
restart: unless-stopped
ports:
- "3000:8080"
environment:
OPENAI_API_BASE_URL: http://litellm:4000/v1
OPENAI_API_KEY: ${LITELLM_MASTER_KEY}
volumes:
- open_webui:/app/backend/data
depends_on:
- litellm
volumes:
ai_pg_data:
qdrant_storage:
open_webui: