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 devices: - /dev/dri:/ 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: