From 55a50153c6d92e66863272edfefc4ab9f36f1e6f Mon Sep 17 00:00:00 2001 From: SJ <22086751+soekja@users.noreply.github.com> Date: Mon, 10 Feb 2025 05:45:45 -0700 Subject: [PATCH] Comment out the postgres configuration from docker-compose.yml (#504) ## Description Comment out the postgres configuration from docker-compose.yml. I think leaving postgres details commented is better than removing them entirely. This keeps simple optionality visible for newcomers. ## DCO Affirmation I affirm that all code in every commit of this pull request conforms to the terms of the Topoteretes Developer Certificate of Origin ## Summary by CodeRabbit - Chores - Improved service configuration by standardizing resource allocation settings. - Temporarily deactivated a non-essential database service along with its related storage setup, while keeping reactivation instructions for future needs. Co-authored-by: Vasilije <8619304+Vasilije1990@users.noreply.github.com> --- docker-compose.yml | 38 ++++++++++++++++++++------------------ 1 file changed, 20 insertions(+), 18 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 9c40979bc..dc9bd2f7b 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -19,7 +19,7 @@ services: deploy: resources: limits: - cpus: '2.0' + cpus: "2.0" memory: 8GB frontend: @@ -60,25 +60,27 @@ services: - 3001:3000 networks: - cognee-network - - postgres: - image: pgvector/pgvector:pg17 - container_name: postgres - environment: - POSTGRES_USER: cognee - POSTGRES_PASSWORD: cognee - POSTGRES_DB: cognee_db - volumes: - - postgres_data:/var/lib/postgresql/data - ports: - - 5432:5432 - networks: - - cognee-network - + # UNCOMMENT IF USING POSTGRES + # postgres: + # image: pgvector/pgvector:pg17 + # container_name: postgres + # environment: + # POSTGRES_USER: cognee + # POSTGRES_PASSWORD: cognee + # POSTGRES_DB: cognee_db + # volumes: + # - postgres_data:/var/lib/postgresql/data + # ports: + # - 5432:5432 + # networks: + # - cognee-network + # UNCOMMENT THE VOLUES SECTION BELOW AS WELL TO USE POSTGRES networks: cognee-network: name: cognee-network -volumes: - postgres_data: +# UNCOMMENT IF USING POSTGRES +# volumes: +# postgres_data: +