docs: Add PostgreSQL usage instructions for UI

Added steps on how to use PostgreSQL for the UI

Docs #COG-457
This commit is contained in:
Igor Ilic 2024-10-29 19:00:42 +01:00
parent f1edb1f3eb
commit 0e9b8108a0

View file

@ -29,7 +29,7 @@ If you have questions, join our <a href="https://discord.gg/NQPKmU5CCg">Discord
pip install cognee pip install cognee
``` ```
### With pip with postgres support ### With pip with PostgreSQL support
```bash ```bash
pip install cognee[postgres] pip install cognee[postgres]
``` ```
@ -40,7 +40,7 @@ pip install cognee[postgres]
poetry add cognee poetry add cognee
``` ```
### With poetry with postgres support ### With poetry with PostgreSQL support
```bash ```bash
poetry add cognee -E postgres poetry add cognee -E postgres
@ -82,6 +82,18 @@ docker-compose up
``` ```
Then navigate to localhost:3000 Then navigate to localhost:3000
If you want to use the UI with PostgreSQL through docker-compose make sure to set the following values in the .env file:
```
DB_PROVIDER=postgres
DB_HOST=postgres
DB_PORT=5432
DB_NAME=cognee_db
DB_USERNAME=cognee
DB_PASSWORD=cognee
```
### Simple example ### Simple example
Run the default cognee pipeline: Run the default cognee pipeline: