Skip to content

feat: add Docker, Docker Compose, and GitHub Actions CI pipeline (#30) - #32

Merged
chonilius merged 1 commit into
MergeFi:mainfrom
JuanVP2:feature/docker-infra-issue-30
Jul 17, 2026
Merged

feat: add Docker, Docker Compose, and GitHub Actions CI pipeline (#30)#32
chonilius merged 1 commit into
MergeFi:mainfrom
JuanVP2:feature/docker-infra-issue-30

Conversation

@JuanVP2

@JuanVP2 JuanVP2 commented Jul 16, 2026

Copy link
Copy Markdown

Closes #30

Description

Addresses #30 by introducing comprehensive containerization, local development orchestration, and an automated CI pipeline.

Key Changes

  • Production Dockerfile: Implemented an optimized multi-stage build running on Node 24 Alpine under a non-root USER node, explicitly enforcing NODE_ENV=production to respect the security guard for the JWT secret.
  • Local Orchestration (docker-compose.yml): Created a development stack linking the NestJS API with a postgres:16-alpine database. Configured an anonymous volume safeguard for node_modules to guarantee Windows/Linux cross-platform compatibility.
  • CI Pipeline (.github/workflows/ci.yml): Designed a GitHub Actions workflow triggered on PRs to run linting, building, and test suites (unit & coverage) against an ephemeral Postgres service container, including a security scanning step.
  • Documentation: Updated the README.md setup instructions to prioritize the new one-liner Docker workflow.

Verification Results

  • Successfully built and verified container multi-stage targets locally.
  • Verified localized network communication between NestJS and Postgres via internal compose bindings.
  • Swagger documentation verified accessible at http://localhost:3000/api/docs.

@vercel

vercel Bot commented Jul 16, 2026

Copy link
Copy Markdown

Someone is attempting to deploy a commit to the chonilius' projects Team on Vercel.

A member of the Team first needs to authorize it.

@chonilius
chonilius merged commit 857437b into MergeFi:main Jul 17, 2026
1 of 2 checks passed
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.

Docker/deployment tooling is entirely absent: no Dockerfile, no docker-compose for local Postgres, no CI pipeline definition

2 participants