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