From ea372d9835324b1d6dee6aaa24cf3892468c588d Mon Sep 17 00:00:00 2001 From: Sebastian Kiepsch Date: Wed, 2 Apr 2025 13:02:58 +0200 Subject: [PATCH] add docker-compose for open-webui --- openwebui/docker-compose.yml | 57 ++++++++++++++++++++++++++++++++++++ openwebui/qdrant/.gitkeep | 0 2 files changed, 57 insertions(+) create mode 100644 openwebui/docker-compose.yml create mode 100644 openwebui/qdrant/.gitkeep diff --git a/openwebui/docker-compose.yml b/openwebui/docker-compose.yml new file mode 100644 index 0000000..d7b15b5 --- /dev/null +++ b/openwebui/docker-compose.yml @@ -0,0 +1,57 @@ +# docker-compose.yml +version: '3.8' +services: + openwebui: + image: ghcr.io/open-webui/open-webui:main + container_name: openwebui + ports: + - "3000:8080" + environment: + - DATABASE_URL=postgresql://openwebui:openwebui@db:5432/openwebui + - PGVECTOR_DB_URL=postgresql://openwebui:openwebui@db:5432/openwebui + - ENABLE_OLLAMA_API=false + - CHUNK_SIZE=2500 + - CHUNK_OVERLAP=500 + - ENABLE_OAUTH_SIGNUP=true + - OAUTH_CLIENT_ID=ChatbotUI + - OAUTH_CLIENT_SECRET= + - OPENID_PROVIDER_URL=https://keycloak..com/realms/chatbot/.well-known/openid-configuration + - OPENAI_API_BASE_URL=https:///v1 + - OPENAI_API_KEY= + - QDRANT_API_KEY= + - VECTOR_DB=qdrant + - QDRANT_URI=http://qdrant:6333 + - RAG_EMBEDDING_ENGINE=openai + - RAG_EMBEDDING_MODEL=intfloat/multilingual-e5-large + volumes: + - openwebui:/app/backend/data + depends_on: + - db + - qdrant + restart: unless-stopped + + qdrant: + restart: always + volumes: + - ./qdrant:/qdrant/storage + ports: + - "6333:6333" + - "6334:6334" + image: qdrant/qdrant + + db: + image: pgvector/pgvector:pg15 + container_name: openwebui-db + environment: + - POSTGRES_USER=openwebui + - POSTGRES_PASSWORD=openwebui + - POSTGRES_DB=openwebui + ports: + - "5432:5432" + volumes: + - postgres_data:/var/lib/postgresql/data + restart: unless-stopped + +volumes: + postgres_data: + openwebui: \ No newline at end of file diff --git a/openwebui/qdrant/.gitkeep b/openwebui/qdrant/.gitkeep new file mode 100644 index 0000000..e69de29