fix ollama 2

This commit is contained in:
Stefan Heyn 2026-02-05 09:04:39 +00:00
parent 21fb0b775f
commit 895de3cdab

View file

@ -1,30 +1,26 @@
version: '3.8'
services:
ollama:
image: ollama/ollama:latest
container_name: ollama-cpu
container_name: ollama
ports:
- "${OLLAMA_PORT:-11435}:11434"
- "11434:11434" # Ollama API
volumes:
- ollama_data:/root/.ollama
environment:
- OLLAMA_HOST=0.0.0.0
shm_size: 16gb
restart: unless-stopped
open-webui:
image: ghcr.io/open-webui/open-webui:main
container_name: ollama-webui
container_name: open-webui
ports:
- "${WEBUI_PORT:-3001}:8080"
- "3001:8080" # Weboberfläche auf Port 3001
volumes:
- openwebui_data:/app/backend/data
environment:
- OLLAMA_BASE_URL=http://host.docker.internal:11435
- OLLAMA_BASE_URL=http://ollama:11434
- WEBUI_SECRET_KEY=${WEBUI_SECRET_KEY}
- ENABLE_SIGNUP=true # ← Admin erstellen!
- CHROMA_SERVER_AUTH_CREDENTIALS="" # ← Chroma Fix!
- CHROMA_SERVER_AUTH_PROVIDER="" # ← Chroma Fix!
- ENABLE_SIGNUP=true # Ersten Admin anlegen
depends_on:
- ollama
restart: unless-stopped
@ -32,4 +28,3 @@ services:
volumes:
ollama_data:
openwebui_data: