OpenWebUI Deployment Overview for Gemma4-31b on Server¶
Prerequisites¶
The following system parameters and network settings are required for the application to function correctly:
-
Operating System: Ubuntu (version 22.04 with HWE kernel installed is recommended).
-
Drivers: Presence of an NVIDIA GPU and installed NVIDIA drivers.
-
Ports:
-
8080— internal application port. -
443— external HTTPS port.
FQDN of the final panel on hostkey.in domain¶
The following domain name template is used to access the interface:
| Parameter | Value |
|---|---|
| Prefix | gemma31b |
| Domain | hostkey.in |
| Full Template | gemma31b{Server_ID_from_Invapi}.hostkey.in |
Application Installation Process¶
Installation is performed by deploying Docker containers and configuring system services:
-
Update system packages and install the HWE kernel.
-
Install NVIDIA drivers (if hardware is present).
-
Install and start the
Ollamaservice. -
Download the
gemma4:31blanguage model viaollama pull. -
Deploy the
OpenWebUIcontainer. -
Configure the Nginx reverse proxy 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 (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:
[email protected] -
Restart Policy:
unless-stopped
Databases¶
The application uses an embedded database inside the OpenWebUI container. Data is stored in a Docker volume named open-webui.
Application Update Instructions¶
Updates are performed via pull and restarting containers. To update, execute the following commands: docker compose pull && docker compose up -d (in the /root/nginx directory) or restart the corresponding services via Docker.
Configuration Files and Data Location¶
-
Nginx Configuration:
/data/nginx/user_conf.d/ -
OpenWebUI Data:
open-webui(Docker volume) -
Compose Files:
/root/nginx/compose.yml -
SSL Secrets:
nginx_secrets(Docker volume)
Available Connection Ports¶
| Port | Purpose | Protocol |
|---|---|---|
443 | External interface access | HTTPS |
11434 | Ollama API (local) | HTTP |
8080 | Internal application port | HTTP |
Starting and Stopping the Application¶
Managing the Nginx reverse proxy:
- Reload configuration:
docker exec nginx-nginx-1 nginx -s reload
Managing containers (in the /root/nginx directory):
-
Start:
docker compose up -d -
Stop:
docker compose down