Skip to content

feat: set up dev database#11

Merged
cherman23 merged 4 commits into
mainfrom
dev-db
Sep 14, 2025
Merged

feat: set up dev database#11
cherman23 merged 4 commits into
mainfrom
dev-db

Conversation

@cherman23
Copy link
Copy Markdown
Collaborator

@cherman23 cherman23 commented Sep 13, 2025

Partial completion of the containerizing the application. This PR creates a dev database using docker-compose. The dev database relies on env variables for the user and password.

todo:

  • Because the docker compose up command runs in detached mode, currently you have to run the command docker compose down to prevent errors after stopping the container. Maybe better dev x if two separate commands for starting dev.

Related Issues: #9

@cherman23 cherman23 requested a review from Copilot September 13, 2025 19:20
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR sets up a development database environment using Docker Compose to containerize PostgreSQL for local development. The changes enable developers to quickly spin up a database instance with environment-based configuration and run database migrations automatically as part of the development workflow.

  • Adds Docker Compose configuration for PostgreSQL 17 with persistent data storage
  • Modifies the dev script to automatically start the database and run migrations
  • Includes Prisma migration files for the initial database schema

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

File Description
docker-compose.yaml Defines PostgreSQL service with environment variables for credentials and persistent volume
package.json Updates dev script to start database and run migrations before starting Next.js
prisma/migrations/migration_lock.toml Prisma migration lock file specifying PostgreSQL provider
prisma/migrations/20250913181608_init/migration.sql Initial database schema migration with all tables and relationships

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread package.json Outdated
Comment thread docker-compose.yaml
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@cherman23 cherman23 merged commit f38b624 into main Sep 14, 2025
2 checks passed
@cherman23 cherman23 deleted the dev-db branch September 14, 2025 18:14
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