diff --git a/compose_ollama.yaml b/compose_ollama.yaml new file mode 100644 index 0000000..8d64cd2 --- /dev/null +++ b/compose_ollama.yaml @@ -0,0 +1,29 @@ +version: '3.8' + +services: + ollama: + image: ollama/ollama + container_name: ollama + restart: unless-stopped + volumes: + - /opt/ollama:/root/.ollama + ports: + - "11434:11434" + + open-webui: + image: ghcr.io/open-webui/open-webui:main + container_name: open-webui + restart: unless-stopped + environment: + - OLLAMA_API_BASE_URL=http://ollama:11434 + - WEBUI_SECRET_KEY=Bernstrasse175c + ports: + - "8080:8080" + volumes: + - /opt/open-webui/config:/app/backend/data + depends_on: + - ollama + +volumes: + ollama_data: + openwebui_data: \ No newline at end of file