feat: dockerized environments, CI/CD pipeline, and enriched seed data#13
Merged
feat: dockerized environments, CI/CD pipeline, and enriched seed data#13
Conversation
1. Infrastructure & Orchestration: * Introduced compose.dev.yaml for isolated development with hot-reload support. * Updated compose.yaml for stable production deployment. * Implemented dx — a universal CLI tool for Docker lifecycle management and command proxying. * Created a specialized Dockerfile.runner for administrative tasks (migrations, seeds, dumps) in an isolated environment. 2. API & Backend: * Refactored Dockerfiles to use multi-stage builds and optimized image sizes. * Configured contextual isolation (working_dir) for each service to enhance in-container development. * Added support for dynamic Swagger URLs via the SWAGGER_SERVER_URL environment variable. * Automated Prisma migrations during production container startup. 3. Frontend (Web): * Configured basePath: "/FinTrack" in Next.js for correct operation behind the reverse proxy. * Optimized healthchecks using 127.0.0.1 to resolve IPv6 issues in Alpine-based images. 4. Network & Proxy (Nginx): * Implemented Nginx as a single entry point (Reverse Proxy) on port 8080. * Refactored shared proxy headers into proxy_headers.conf for a cleaner configuration. * Added automatic redirection from the root / to /FinTrack/. 5. Database & Prisma: * Configured Prisma Studio to bind to all network interfaces (0.0.0.0). * Managed port exposures to allow concurrent command execution without conflicts.
* Refactored CI pipeline into specialized parallel jobs (lint, type-check, security, test). * Introduced composite actions for Node.js setup and Turborepo caching to improve performance and maintainability. * Added Prisma schema drift detection and environment variable documentation validation. * Implemented automated Docker image builds for GHCR with integrated Trivy security scanning. * Configured workflow gating to ensure production releases only occur after successful CI verification.
…, and improve codebase-dump reliability
* Improved dx CLI: Smart proxying and service shortcuts. * Expanded Seed Data: Rich datasets for users, transactions, AI history, and logs. * New Commands: Added db:setup and db:reset for quick environment initialization.
BODMAT
approved these changes
Apr 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview
This PR delivers a production-ready containerization stack, a revamped CI/CD pipeline, and a comprehensive seed dataset for local development.
What's Changed
🐳 Docker & Infrastructure
compose.dev.yaml— full dev stack with hot-reload, named volumes, pgAdmin, Prisma Studio port, and arunnerservice for one-off CLI taskscompose.yaml— production stack behind Nginx (port 8080), with health checks andrestart: unless-stoppedapi,bot, andweb— minimal Alpine-based images with optimized layer cachingnginx/nginx.conf) — single entry point routing/api/,/api-docs, and/FinTrack/with sharedproxy_headers.conf/api/healthendpoint added for Docker health checks🛠️ dx CLI
dxscript wrappingdocker composefor both dev and prod lifecyclesdxrun on the host; others are forwarded to therunnercontainer automaticallysetup,dev,prod,shell,run,logs,ps, andp-prefixed prod variants⚙️ CI/CD
validate-env,migration-check,lint-and-format,type-check,security,testsetup-node,turbo-cachegate.yml— blocks release if CI fails; triggers release on successrelease.yml— builds and pushes Docker images to GHCR with Trivy vulnerability scanning (CRITICAL/HIGH) for all three services🗄️ Database Scripts
db-dump.shanddb-restore.shhardened: Docker auto-detection, safe schema reset (drops tables and enums individually), Prisma?schema=param stripping--cleanflag for schema-only wipe without restoredb:setup,db:resetand their:dxDocker variants🌱 Seed Data
11111111for all accounts🔧 Misc
SWAGGER_SERVER_URLenv var for contextual Swagger URL (local vs Docker vs prod)0.0.0.0for Docker port forwardingstart/devscripts simplified (removeddotenv-cliwrapping)