diff --git a/Dockerfile b/Dockerfile index ec3dd8119..cec626c86 100644 --- a/Dockerfile +++ b/Dockerfile @@ -25,7 +25,7 @@ RUN pip install poetry RUN poetry config virtualenvs.create false # Install the dependencies -RUN poetry install --no-root --no-dev +RUN poetry install --all-extras --no-root --no-dev # Set the PYTHONPATH environment variable to include the /app directory diff --git a/README.md b/README.md index 55a01092e..04c1c2ef9 100644 --- a/README.md +++ b/README.md @@ -29,6 +29,10 @@ If you have questions, join our Discord pip install cognee ``` +### With pip with PostgreSQL support +```bash +pip install cognee[postgres] +``` ### With poetry @@ -36,6 +40,11 @@ pip install cognee poetry add cognee ``` +### With poetry with PostgreSQL support + +```bash +poetry add cognee -E postgres +``` ## 💻 Basic Usage @@ -73,6 +82,18 @@ docker-compose up ``` 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 Run the default cognee pipeline: