Skip to content

Simplify Deployment Separated Container Ollama + Open Web UI with Docker Compose and Unix Bash Script

Notifications You must be signed in to change notification settings

HaikalRFadhilahh/docker-ollama-open-wui

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Deploy Your Personal AI (Ollama + Docker + Open Web UI)

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.

Requirements

  • Docker
  • docker compose / docker-compose Command
  • Bash Shell

Features

  • Simple Deployment using Docker Compose
  • Interactive Bash Script for Unix Operating System Based
  • Easy to Installing Available Models

Manual Installation and Deployment

1. Clone Project Repository

git clone https://github.com/HaikalRFadhilahh/docker-ollama-open-wui.git docker-ollama-open-wui

2. Go to Project Repository

cd docker-ollama-open-wui

3. Pull Docker Image Services

docker compose pull

4. Starting Docker Service via Docker Compose

docker compose up -d

Stopping Ollama and Open Web UI Services

Stopping All Services (Without Remove Ollama Models)

docker compose down

Stopping All Service and Remove Volumes (Including Open Web UI Credentials and Ollama Models)

docker compose down -v

Installing Models via Ollama

Installing 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.5b

You can find the available Ollama Model List at the following link list ollama models

Delete unused 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 list

Automation Installation and Deployment Using Bash Script (Only for Unix Systems)

In 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.sh

Running the deploy.sh script with bash :

bash deploy.sh

After 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`:

Logo Project

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 :

Logo Project

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 :

Logo Project

Access Application

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.

Linux / Mac Os

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}

Windows

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 Setting Custom Host and 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 -d

After restarting, you can access the Open Web UI through the Host and Port that you have configured.

Contributing

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 ❤️

About

Simplify Deployment Separated Container Ollama + Open Web UI with Docker Compose and Unix Bash Script

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages