docker/ollama/docker-compose.yml
2026-02-05 09:04:39 +00:00

30 lines
738 B
YAML

services:
ollama:
image: ollama/ollama:latest
container_name: ollama
ports:
- "11434:11434" # Ollama API
volumes:
- ollama_data:/root/.ollama
environment:
- OLLAMA_HOST=0.0.0.0
restart: unless-stopped
open-webui:
image: ghcr.io/open-webui/open-webui:main
container_name: open-webui
ports:
- "3001:8080" # Weboberfläche auf Port 3001
volumes:
- openwebui_data:/app/backend/data
environment:
- OLLAMA_BASE_URL=http://ollama:11434
- WEBUI_SECRET_KEY=${WEBUI_SECRET_KEY}
- ENABLE_SIGNUP=true # Ersten Admin anlegen
depends_on:
- ollama
restart: unless-stopped
volumes:
ollama_data:
openwebui_data: