Openwebui Postgres Qdrant
Docker Compose for OpenWebUI + Postgres + Qdrant
About This Project
OpenWebUI-Postgres-Qdrant is a set of Docker Compose configurations and accompanying documentation for running Open WebUI, a self-hosted interface for large language models, with a more production-oriented backend stack. By default, Open WebUI stores data in SQLite and uses ChromaDB for retrieval-augmented generation. This project replaces those defaults with PostgreSQL for relational data, Qdrant for vector storage, and Redis for WebSocket management, which supports real-time features such as streamed model responses. The repository explains each change step by step, including the relevant environment variables, health checks, persistent volume considerations, and connection pool settings.
The project also addresses the practical challenge of moving existing data. Changing the database URL alone does not migrate records, so the documentation directs users to a third-party migration script that transfers users, conversations, model configurations, and RAG documents from SQLite to PostgreSQL. It recommends performing the migration while the containers are stopped to avoid partial writes. The README is candid about its age, noting that it was drafted in March 2025 and that the version details may become outdated.
This configuration is most relevant to self-hosters and small teams who want Open WebUI to run on a database and vector store that are easier to back up, scale, or host separately, and to developers who want a working reference for combining these services in Docker Compose. Users who prefer the official single-container setup, or who do not need Redis, can adapt the included snippets by removing the unneeded services.