Skip to content

Conversation

@mohithingorani
Copy link

🔧 Dockerize API for Easy Deployment

📦 What's New

This PR adds complete Docker support for the project, enabling smooth local development and deployment with minimal setup using Docker Compose.

🚀 Changes Made

Dockerized the API:

Added a Dockerfile to containerize the Node.js API.

Added a docker-compose.yml to orchestrate both the API and a PostgreSQL database.

Configured environment variables via .env for clean configuration management.

Exposed ports for both API (3241) and database (5480) for local use.

Ensured database connectivity with the depends_on directive in Docker Compose.

🐳 How to Run

Copy .env.example to .env and configure values as needed.

Run the app:

docker-compose up --build

API will be available at: http://localhost:3241

📌 Notes

This Docker setup is aimed at simplifying onboarding and testing.

Original codebase did not include Docker support.

No core logic of the API was modified — only packaging and infrastructure.

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