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: deploy:
resources: resources:
limits: limits:
cpus: '2.0' cpus: "2.0"
memory: 8GB memory: 8GB
frontend: frontend:
@ -60,25 +60,27 @@ services:
- 3001:3000 - 3001:3000
networks: networks:
- cognee-network - cognee-network
# UNCOMMENT IF USING POSTGRES
postgres: # postgres:
image: pgvector/pgvector:pg17 # image: pgvector/pgvector:pg17
container_name: postgres # container_name: postgres
environment: # environment:
POSTGRES_USER: cognee # POSTGRES_USER: cognee
POSTGRES_PASSWORD: cognee # POSTGRES_PASSWORD: cognee
POSTGRES_DB: cognee_db # POSTGRES_DB: cognee_db
volumes: # volumes:
- postgres_data:/var/lib/postgresql/data # - postgres_data:/var/lib/postgresql/data
ports: # ports:
- 5432:5432 # - 5432:5432
networks: # networks:
- cognee-network # - cognee-network
# UNCOMMENT THE VOLUES SECTION BELOW AS WELL TO USE POSTGRES
networks: networks:
cognee-network: cognee-network:
name: cognee-network name: cognee-network
volumes: # UNCOMMENT IF USING POSTGRES
postgres_data: # volumes:
# postgres_data: