fix ollama
This commit is contained in:
parent
e27a814398
commit
21fb0b775f
1 changed files with 9 additions and 15 deletions
|
|
@ -1,41 +1,35 @@
|
||||||
version: '3.8'
|
version: '3.8'
|
||||||
|
|
||||||
services:
|
services:
|
||||||
ollama:
|
ollama:
|
||||||
image: ollama/ollama:0.3.12
|
image: ollama/ollama:latest
|
||||||
container_name: ollama-cpu
|
container_name: ollama-cpu
|
||||||
ports:
|
ports:
|
||||||
- "${OLLAMA_PORT:-11434}:11434"
|
- "${OLLAMA_PORT:-11435}:11434"
|
||||||
volumes:
|
volumes:
|
||||||
- ollama_data:/root/.ollama
|
- ollama_data:/root/.ollama
|
||||||
environment:
|
environment:
|
||||||
- OLLAMA_HOST=0.0.0.0
|
- OLLAMA_HOST=0.0.0.0
|
||||||
- OLLAMA_MAX_LOADED_MODELS=2
|
shm_size: 16gb
|
||||||
- OLLAMA_NUM_PARALLEL=2
|
|
||||||
shm_size: 8gb
|
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
||||||
open-webui:
|
open-webui:
|
||||||
image: ghcr.io/open-webui/open-webui:main
|
image: ghcr.io/open-webui/open-webui:main
|
||||||
container_name: ollama-webui
|
container_name: ollama-webui
|
||||||
ports:
|
ports:
|
||||||
- "${WEBUI_PORT:-3000}:8080"
|
- "${WEBUI_PORT:-3001}:8080"
|
||||||
volumes:
|
volumes:
|
||||||
- openwebui_data:/app/backend/data
|
- openwebui_data:/app/backend/data
|
||||||
environment:
|
environment:
|
||||||
- OLLAMA_BASE_URL=http://ollama:11434
|
- OLLAMA_BASE_URL=http://host.docker.internal:11435
|
||||||
- WEBUI_SECRET_KEY=${WEBUI_SECRET_KEY}
|
- WEBUI_SECRET_KEY=${WEBUI_SECRET_KEY}
|
||||||
- ENABLE_SIGNUP=false
|
- ENABLE_SIGNUP=true # ← Admin erstellen!
|
||||||
- DEFAULT_OLLAMA_HOST=http://ollama:11434
|
- CHROMA_SERVER_AUTH_CREDENTIALS="" # ← Chroma Fix!
|
||||||
- PUID=1000
|
- CHROMA_SERVER_AUTH_PROVIDER="" # ← Chroma Fix!
|
||||||
- PGID=1000
|
|
||||||
user: "1000:1000" # ← FIX: Permission Denied!
|
|
||||||
depends_on:
|
depends_on:
|
||||||
- ollama
|
- ollama
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
ollama_data:
|
ollama_data:
|
||||||
driver: local
|
|
||||||
openwebui_data:
|
openwebui_data:
|
||||||
driver: local
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue