Comment out the postgres configuration from docker-compose.yml (#504)

<!-- .github/pull_request_template.md -->

## 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


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## 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.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->

Co-authored-by: Vasilije <8619304+Vasilije1990@users.noreply.github.com>
This commit is contained in:
SJ 2025-02-10 05:45:45 -07:00 committed by GitHub
parent ea1c8bd3ca
commit 55a50153c6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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: