Skip to content

feat: Add Docker support for generated projects #103

@amanvatss

Description

@amanvatss

Currently, once a project is created with Celtrix, the developer is responsible for setting up their own development and deployment environment. A common and modern approach is to use Docker, but this requires manually creating Dockerfile and docker-compose.yml files, which can be time-consuming and error-prone for those new to Docker.

I propose adding built-in Docker support to the generated templates. When a project is scaffolded, it should include the following:

  1. A Dockerfile for the front-end service (e.g., the React/Next.js app).
  2. A Dockerfile for the back-end service (e.g., the Express app).
  3. A docker-compose.yml file at the project root that defines and links the front-end, back-end, and database services.

This will allow a developer to get the entire full-stack application running with a single command: docker-compose up.

Additional context

This feature would significantly increase the value of Celtrix by providing a complete, containerized development environment out-of-the-box. It aligns perfectly with the project's goal of automating setup and saving developer time.

I am excited to work on this feature for #Hacktoberfest. Please let me know if you think this is a good direction for the project!

Metadata

Metadata

Assignees

Projects

Status

Done

Relationships

None yet

Development

No branches or pull requests

Issue actions