
Open WebUI is an open-source, self-hosted web interface for interacting with large language models. It provides a ChatGPT-like experience while maintaining complete data privacy through local deployment. Open WebUI supports multiple AI backends including Ollama, OpenAI API-compatible services, and various open-source models, offering features like conversation history, document uploads, and customizable system prompts.
In this article, you will deploy Open WebUI using Docker Compose, configure persistent storage for conversations and settings, and set up Traefik as a reverse proxy to securely access your Open WebUI instance.
Before you begin, you need to:
sudo privileges.openwebui.example.com).In this section, you prepare the required directory structure for Open WebUI and define environment variables in a .env file.
Create the directory structure for Open WebUI.
This directory stores user accounts, conversation history, and application settings.
Navigate into the openwebui directory.
Create a .env file.
Add the following variables:
Replace:
openwebui.example.com with your domain.admin@example.com with your email.Save and close the file.
In this section, you create and deploy the Docker Compose stack that runs Open WebUI behind Traefik. Docker Compose manages both containers, applies the environment variables from your .env file, and automatically configures HTTPS routing through Traefik.
Create a new Docker Compose manifest.
Add the following content.
Save and close the file.
This deployment specifies:
./data) preserves user accounts, chat history, and uploaded documents.letsencrypt maintains certificate storage independently.Create and start the services.
Verify that the services are running.
Output:
Both containers are running. Open WebUI processes chat requests while Traefik handles connections on ports 80 and 443.
View the logs of the services.
For more information on managing a Docker Compose stack, see the How To Use Docker Compose article.
This section shows how to access the Open WebUI interface, create an administrator account, and configure an AI backend for chat functionality.
Open the Open WebUI interface in your browser.
Click Get started to create the first user account. The initial account automatically receives administrator privileges.
After registration, the chat interface displays. Configure an AI backend:
Start a conversation by selecting a model from the dropdown and typing your message. Open WebUI supports:
Explore additional features:
You have successfully deployed Open WebUI for AI chat interaction with HTTPS encryption. The Docker Compose architecture combines the chat interface with automated SSL certificate management, while volume persistence protects your conversation history and user data. Traefik handles secure traffic routing and certificate renewal automatically. Your Open WebUI instance is prepared to connect with various AI backends, support multiple users, and provide a private ChatGPT-like experience under your complete control.
0 Comments
Be the first to comment and share your perspective with the community.