https://github.com/msetsma/webui-ollama-script
PowerShell script to start and launch the WebUI Docker container, followed by opening the local website.
https://github.com/msetsma/webui-ollama-script
Last synced: about 1 year ago
JSON representation
PowerShell script to start and launch the WebUI Docker container, followed by opening the local website.
- Host: GitHub
- URL: https://github.com/msetsma/webui-ollama-script
- Owner: msetsma
- License: mit
- Created: 2024-08-07T19:03:39.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-07T19:05:56.000Z (almost 2 years ago)
- Last Synced: 2025-01-30T11:46:33.558Z (over 1 year ago)
- Language: PowerShell
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Here's the updated `README.md` file:
**Docker Container Launcher**
==========================
A simple PowerShell script to start and launch a Docker container, followed by opening a website hosted within the container.
**Prerequisites**
-----------------
Before running this script, you need to install the following:
* **Ollama**: Download and install Ollama from [https://ollama.com/download/windows](https://ollama.com/download/windows)
* **Docker Desktop for Home**: Install Docker Desktop for Home from [https://www.docker.com/products/docker-desktop](https://www.docker.com/products/docker-desktop)
* **OpenWebUI**: Follow the installation instructions at [https://docs.openwebui.com/](https://docs.openwebui.com/)
**Step 1: Run the Docker Command**
---------------------------------
Before running this script, you need to run the following Docker command in your terminal:
```bash
docker run -d -p 3000:8080 --gpus=all -v ollama:/root/.ollama -v open-webui:/app/backend/data --name open-webui --restart always ghcr.io/open-webui/open-webui:ollama
```
This command downloads and installs OpenWebUI with Ollama integration.
**Configuration**
---------------
* You can modify the `$containerName` variable at the top of the script to match your container's name
* The website URL is set to `http://localhost:3000/auth`, you can change it to point to a different website within your container
**Features**
------------
* Checks if the container is running and stops it if so
* Starts the container if it's not running or exists but is stopped
* Waits for the container to start before launching the website