Using docker deploy ollama and litellm for my personal RAG.
1.1 Install docker, nvidia container toolkit
1.2 Copy the .env.example to .env and change it.
cp .env.example .env1.3 Start container
docker compose up -d1.4 Downloa Qwen
docker exec -it ollama ollama pull qwen3:14b1.5 TEST Ollama
curl http://localhost:11434/api/generate -d '{
"model": "qwen3:14b",
"prompt": "請用繁體中文介紹RAG"
}'1.6 TEST LiteLLM API
curl http://localhost:4000/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer sk-local-123456" \
-d '{
"model": "qwen3-local",
"messages": [
{"role": "user", "content": "請用繁體中文介紹RAG"}
]
}'