Add deployment scripts and configuration for Open WebUI + Ollama stack on Linux

This commit is contained in:
2026-04-12 16:24:25 -04:00
commit 646e83eaad
4 changed files with 151 additions and 0 deletions

59
DEPLOYMENT.md Normal file
View File

@@ -0,0 +1,59 @@
# Open WebUI + Ollama (Self-Contained) on Linux
This stack runs Open WebUI and Ollama in Docker with persistent storage, and starts automatically at boot via systemd.
## 1) Install Docker and compose plugin
Ubuntu/Debian example:
```bash
sudo apt-get update
sudo apt-get install -y docker.io docker-compose-plugin
sudo systemctl enable --now docker
```
## 2) Copy this folder to your Linux host
Example destination:
```bash
/opt/openwebui-ollama-src
```
## 3) Run installer
```bash
cd /opt/openwebui-ollama-src
chmod +x install-linux.sh
./install-linux.sh
```
What it does:
- Copies `docker-compose.yml` to `/opt/openwebui-ollama`
- Installs and enables `openwebui-ollama.service`
- Starts the stack immediately
## 4) Open WebUI
Browse to:
```text
http://<linux-host-ip>:3000
```
## 5) Validate boot persistence
```bash
sudo systemctl status openwebui-ollama.service
sudo reboot
# after reboot
sudo systemctl status openwebui-ollama.service
docker ps
```
## Optional: Pull additional Ollama models
```bash
docker exec ollama ollama pull qwen2.5:7b
docker exec ollama ollama pull mistral:7b
```