This project is a simple script for those of you who want to create or have a Personal AI such as ChatGPT, DeepSeek, etc. Without requiring complicated configuration, you can easily set up your own AI system. Using Docker Compose, you just need to run a few commands, and with Reverse Proxy, you can make it accessible through your personal domain.
- Docker
- docker compose / docker-compose Command
- Bash Shell
- Simple Deployment using Docker Compose
- Interactive Bash Script for Unix Operating System Based
- Easy to Installing Available Models
1. Clone Project Repository
git clone https://github.com/HaikalRFadhilahh/docker-ollama-open-wui.git docker-ollama-open-wui2. Go to Project Repository
cd docker-ollama-open-wui3. Pull Docker Image Services
docker compose pull4. Starting Docker Service via Docker Compose
docker compose up -dStopping All Services (Without Remove Ollama Models)
docker compose downStopping All Service and Remove Volumes (Including Open Web UI Credentials and Ollama Models)
docker compose down -vInstalling Models Ollama using Docker Exec
docker exec -it ollama-ai ollama pull ${model_name}Example:
docker exec -it ollama-ai ollama pull deepseek-r1:1.5bYou can find the available Ollama Model List at the following link list ollama models
Delete Models Ollama using Docker Exec
docker exec -it ollama-ai ollama pull ${model_name}You can view the list of ollama models available on your local machine with this command.
docker exec -it ollama-ai ollama listIn addition to manually configuring and deploying with the list of commands above. We have provided the `deploy.sh` script to make it easier for users / developers / system administrators to deploy and run this Project, namely AI Problem with Docker + Ollama + Open Web UI. The following is a guide to using the Deployment Automation Script:
Memberikan akses execute untuk shell script :
chmod a+x deploy.shRunning the deploy.sh script with bash :
bash deploy.shAfter you run the script through the terminal and executed through the Bash Shell, it will open a menu option that you can choose to facilitate the deployment process. Here is the output of the Automation Script `deploy.sh`:
If the display above is the same as yours, you can just use the feature according to your desired needs such as Downloading Images, Running Docker Compose, Downloading Ollama Models, etc.
Additional Information : There are several signs whether the feature you are running on your machine is working properly or not by looking at the Feedback at the top of your terminal.
If the feature you run is running properly you will get the information results with green writing, Example :
If the feature does not run properly or has an error / crash / does not support your machine. The script will provide a notification with red writing and understand what steps are recommended so that you can run it properly, Example :
After Ollama and Open Web UI is up and running properly, by default you can access the Open Web UI web portal at http://127.0.0.1:3000.
But you can change the Host and Port Open Web UI using operating system env.
You can change the Host and Port via Export Variable ENV in the terminal with the command below:
export OPEN_WEB_UI_HOST=${Your preferred host}export OPEN_WEB_UI_PORT=${Your preferred port}You can change the Host and Port via command promt Variable ENV in the terminal with the command below:
set OPEN_WEB_UI_HOST=${Your preferred host}set OPEN_WEB_UI_PORT=${Your preferred port}After configuring your Host and Port through Operating System Variables, you are required to restart when docker compose is running with the command below:
docker compose down && docker compose up -dAfter restarting, you can access the Open Web UI through the Host and Port that you have configured.
You can contribute to this project through Pull Requests to this Repository, or you can report bugs or vulnerabilities through the issues feature on github. 🐳
Created by Haikal and Contributors with ❤️


