Qwen Deployment Overview on Server¶
Prerequisites¶
The following system parameters are required for the application to function correctly:
-
Operating System: Ubuntu (version 22.04 LTS is recommended).
-
Access Rights:
rootprivileges for installing drivers and system packages. -
Ports:
-
8080— internal application port. -
443— external port (HTTPS) via proxy server.
FQDN of the final panel on hostkey.in domain¶
The following domain name template is used to access the interface:
| Parameter | Value |
|---|---|
| Prefix | qwen |
| Domain | hostkey.in |
| Full Template | qwen{Server_ID_from_Invapi}.hostkey.in |
File and Directory Structure¶
Main directories used in the system:
-
/root/nginx— Docker Compose configuration files for the Nginx proxy server. -
/data/nginx/user_conf.d— user Nginx configurations. -
/etc/letsencrypt— SSL certificates (stored in thenginx_secretsvolume). -
/app/backend/data— OpenWebUI application data (stored in theopen-webuivolume).
Application Installation Process¶
Deployment includes the following stages:
-
Updating system packages and installing the HWE kernel.
-
Installing NVIDIA drivers (if a GPU is present) and the
ubuntu-driversutility. -
Installing and launching the Ollama service via the official installation script.
-
Downloading the
qwen3.6-35bmodel into Ollama. -
Deploying the OpenWebUI container.
-
Configuring the Nginx proxy server with automatic SSL certificate acquisition via Certbot.
Docker Containers and Execution¶
The following containers are deployed in the system:
OpenWebUI¶
-
Image Name:
ghcr.io/open-webui/open-webui:main -
Network Mode:
host -
Volumes:
open-webui:/app/backend/data -
Environment Variables:
-
OLLAMA_BASE_URL=http://127.0.0.1:11434 -
Restart Policy:
always
Nginx (with Certbot)¶
-
Image Name:
jonasal/nginx-certbot:latest -
Network Mode:
host -
Volumes:
-
nginx_secrets:/etc/letsencrypt -
/data/nginx/user_conf.d:/etc/nginx/user_conf.d -
Environment Variables:
-
Restart Policy:
unless-stopped
Databases¶
The application uses Ollama as a backend for model operations. Model data and OpenWebUI configurations are stored in Docker volumes:
open-webui— application data.
Application Update Instructions¶
Updates are performed by restarting containers or updating packages. To update the proxy server, use the command:
To apply changes to the Nginx configuration without stopping the service:Available Connection Ports¶
| Port | Purpose | Protocol |
|---|---|---|
443 | External interface access (HTTPS) | TCP |
8080 | Internal application traffic | TCP |
11434 | Ollama API | TCP |