First commit
This commit is contained in:
BIN
ollama-webui/.docker-compose.yml.swp
Normal file
BIN
ollama-webui/.docker-compose.yml.swp
Normal file
Binary file not shown.
8
ollama-webui/docker-compose
Executable file
8
ollama-webui/docker-compose
Executable file
@@ -0,0 +1,8 @@
|
||||
#!/bin/bash
|
||||
docker-compose up -d
|
||||
models=("smollm2:135m" "all-minilm:22m" "nomic-embed-text" "qwen2.5:0.5b" "qwen3:0.6b" "gemma3:1b" "hf.co/mradermacher/DeepSeek-R1-Distill-Qwen-1.5B-Fully-Uncensored-i1-GGUF:Q4_K_S")
|
||||
for model in "${models[@]}"; do
|
||||
docker exec $(docker ps | grep ollama | awk '{print $1}') bash -c "ollama pull $model"
|
||||
done
|
||||
echo ""
|
||||
echo "---OLLAMA INIT DONE !"
|
||||
28
ollama-webui/docker-compose.yml
Normal file
28
ollama-webui/docker-compose.yml
Normal file
@@ -0,0 +1,28 @@
|
||||
services:
|
||||
ollama:
|
||||
image: ollama/ollama:latest
|
||||
ports:
|
||||
- "192.168.0.131:11434:11434" # Exposing API port
|
||||
environment:
|
||||
- OLLAMA_HOST=0.0.0.0:11434
|
||||
restart: unless-stopped # Auto-restart
|
||||
|
||||
open-webui:
|
||||
image: ghcr.io/open-webui/open-webui:main
|
||||
container_name: open-webui
|
||||
volumes:
|
||||
- open-webui:/app/backend/data
|
||||
depends_on:
|
||||
- ollama
|
||||
ports:
|
||||
- 192.168.0.131:3001:8080
|
||||
environment:
|
||||
- 'OLLAMA_BASE_URL=http://192.168.0.131:11434'
|
||||
- 'WEBUI_SECRET_KEY='
|
||||
#extra_hosts:
|
||||
#- host.docker.internal:host-gateway
|
||||
restart: unless-stopped
|
||||
|
||||
volumes:
|
||||
ollama: {}
|
||||
open-webui: {}
|
||||
Reference in New Issue
Block a user