Skip to content

Docker Integration for PostgreSQL Database - #22

Open
Caivan wants to merge 7 commits into
vercel:na/update-to-v5from
Caivan:create-docker-for-database-creation
Open

Docker Integration for PostgreSQL Database#22
Caivan wants to merge 7 commits into
vercel:na/update-to-v5from
Caivan:create-docker-for-database-creation

Conversation

@Caivan

@Caivan Caivan commented Oct 29, 2025

Copy link
Copy Markdown

This pull request includes the following updates:

  • Docker Integration: Added Docker commands for building, running, stopping, and managing the PostgreSQL database container, ensuring a smooth development environment setup.

Impact

These changes enhance the project's configuration management and database handling capabilities, making it easier for developers to set up their environment and manage database migrations.

Added Docker-related scripts to package.json for managing the PostgreSQL database container with pgvector extension.

Added Docker Commands

Build Command:

docker:db:build - Builds the PostgreSQL container with pgvector extension

Run Commands:

docker:db:run - Runs the database container with environment variables
docker:db:up - Stops existing container, builds, and runs a new one

Management Commands:

docker:db:stop - Stops and removes the existing container
docker:db:logs - Shows container logs in follow mode

Cleanup Commands:

docker:db:prune - Stops container and prunes volumes
docker:db:prune-all - Full cleanup of container, image, and volumes

Usage

  • To start the database:
pnpm run docker:db:up

To view logs:

npm run docker:db:logs

To stop and clean up:

npm run docker:db:prune

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants