Separate the services first
A working chat window is only one part of a deployment. Separate the inference engine, retrieval service, vector database, document ingestion, and user-facing application. Put authentication and TLS at a defined gateway. Keep management and database interfaces away from the public internet.
This guide describes an integration pattern. The snippets are configuration examples, not a production stack that Mofinode has tested on your hardware. They do not install SSO, a reverse proxy, or a complete document pipeline for you.
One question. Two architectures.
Where is the deployment guide?
vLLM runs in a container with GPU access. Open WebUI and Qdrant remain within the private service architecture.
Conceptual cutaway · not a specific device modelNVIDIA Linux: container inference
For compatible NVIDIA hardware, vLLM provides an official container deployment path. Validate the host driver, container GPU access, model architecture, quantization support, and memory capacity together. A configuration that starts successfully can still fail under long contexts or concurrent requests. See the official Docker guide.
The following Compose excerpt deliberately requires a reviewed image digest, an existing local model directory, and a nonempty API token. Set these in an uncommitted environment file before running it. The selected image must support the specified flags and model.
services:
inference:
image: ${VLLM_IMAGE:?Set a reviewed image digest}
gpus: all
restart: unless-stopped
ports:
- "127.0.0.1:8000:8000"
environment:
HF_HUB_OFFLINE: "1"
volumes:
- ${MODEL_DIR:?Set an absolute local model directory}:/models:ro
command:
- --model
- /models
- --served-model-name
- company-model
- --api-key
- ${INFERENCE_TOKEN:?Set a private token}
- --max-model-len
- "4096"
The loopback binding limits host exposure; it is not a substitute for firewall rules or a secure application gateway. A UI in another container needs an explicitly designed internal route rather than assuming the host’s localhost is reachable from that container. Protect the runtime configuration because the inference token may be visible to privileged operators.
Apple Silicon: native inference
On macOS, use a native inference runtime when you need Apple GPU acceleration. Ollama’s official Docker guidance distinguishes the macOS host path from NVIDIA container acceleration. Qdrant and a user interface may run separately in containers.
# After installing Ollama from its official distribution:
OLLAMA_HOST=127.0.0.1:11434 ollama serve
# In a second terminal, while model downloads are permitted:
ollama pull llama3.2:3b
ollama run llama3.2:3b
This small model is a connectivity example, not a recommendation for enterprise answer quality. Record the resolved model digest and licence. Keep the service private. A containerized interface cannot use the host’s loopback address directly; use a protected host-to-container route or an authenticated local gateway. Do not solve connectivity by exposing an unauthenticated model endpoint to the whole network.
Downloading is different from offline operation
Download and review container images, model weights, tokenizer files, embedding models, and dependencies in a controlled staging environment. Transfer approved artifacts into the isolated environment and verify their hashes. Start the application with external access blocked and test whether document parsing, embeddings, and inference still work.
An internal Docker network alone is not evidence of a fully air-gapped service. The host, outbound proxies, monitoring, storage, and update mechanisms must be considered too.
Probe the inference endpoint
The Linux example exposes an OpenAI-compatible HTTP interface. This request needs a running, compatible engine and the same private token configured above; it does not require an external model provider.
curl --fail-with-body http://127.0.0.1:8000/v1/chat/completions -H "Authorization: Bearer ${INFERENCE_TOKEN:?Set INFERENCE_TOKEN}" -H "Content-Type: application/json" -d '{"model":"company-model","messages":[{"role":"user","content":"Reply with one short greeting."}],"max_tokens":32}'
Before calling it production
- Put TLS and identity verification in front of the user-facing application.
- Test allowed and denied document retrieval through the actual application.
- Set context, concurrency, and request limits from measurements.
- Back up application state and test restoring it.
- Pin releases, plan rollback, and document the operator responsible for updates.
- Record failed requests without retaining sensitive prompts unnecessarily.
Continue with permission-aware RAG and hardware capacity planning. Avoid assuming a successful test request proves the entire application is secure or ready for a company-wide rollout.
Questions and answers
Should I choose NVIDIA Linux or Apple Silicon?
Choose using measurements of your model, context, concurrency, and operating needs. NVIDIA Linux supports a container inference path; Apple Silicon offers a native acceleration path with shared system memory. Neither guarantees a particular throughput.
Can every service run in Docker?
Some components can, but hardware acceleration depends on the host and runtime. On Apple Silicon, the deployment described here uses native inference, with supporting services optionally in containers. Container localhost is not the host localhost.
When is the deployment ready for production?
After the actual application passes identity and document-access tests, measured capacity limits, backup restoration, monitoring, and rollback checks. The example configuration is not a complete production deployment.

