Skip to content

Deploy - #5

Merged
the-pujon merged 9 commits into
masterfrom
deploy
Jan 4, 2026
Merged

Deploy#5
the-pujon merged 9 commits into
masterfrom
deploy

Conversation

@the-pujon

Copy link
Copy Markdown
Owner

This pull request introduces a new CI/CD workflow for automated deployment to EC2, refactors the Docker build process to use a multi-stage build for better performance and security, and updates Docker Compose configurations for both development and production environments. Additionally, it makes minor codebase improvements and environment standardization.

CI/CD and Deployment Automation:

  • Adds a GitHub Actions workflow (.github/workflows/deploy.yaml) that builds the Docker image, pushes it to Docker Hub, and deploys the application to an EC2 instance using SSH and Docker Compose.

Docker and Docker Compose Improvements:

  • Refactors the Dockerfile to use a multi-stage build (builder and runtime stages), upgrades to Node.js 22-alpine, and optimizes dependency installation and build steps for production.
  • Updates docker-compose.prod.yaml to use the latest Docker image from Docker Hub for the backend service, standardizing environment variables and networking.
  • Adds docker-compose.override.yaml for local development, allowing the backend to be built from source with live reloading and development-friendly settings.
  • Removes the backend service definition from docker-compose.yaml, centralizing environment-specific configuration in override and production files.

Minor Codebase Improvements:

  • Updates the import path for PrismaClient in lib/prisma.ts to use the standard @prisma/client package.
  • Changes the default application port in src/main.ts from 5500 to 5000 for consistency with Docker and Compose configurations.

@the-pujon
the-pujon merged commit e6fe015 into master Jan 4, 2026
1 check 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.

1 participant