hiteshchoudhary / apihub

Your own API Hub to learn and master API interaction. Ideal for frontend, mobile dev and backend developers.
https://freeapi.app
Other
6.4k stars 1.06k forks source link

[enhancement]: Enhance Developer Experience with Docker Compose #153

Closed yntpdotme closed 5 months ago

yntpdotme commented 6 months ago

Description:

Current setup poses challenges and hampers developer productivity

  1. Currently, our Docker Compose configuration uses bind mounting for the backend service, which requires

    • managing the node_modules separately
    • rebuilding the image whenever a new dependency is added to the project.
  2. Additionally, the MongoDB service logs clutter the terminal, making it difficult to focus on relevant information and causing unnecessary distraction.

Proposed Changes:

  1. Implement Docker Compose watch feature to automatically sync and rebuild, eliminating the need for bind mounting and manual management of node_modules.

  2. Optimize MongoDB service by adding --quiet and --logpath /dev/null options to reduce log clutter.

Use Case

After running docker compose up --build:

Additional Information

Additional context or Information

Suggested Tools

Labels:

wajeshubham commented 6 months ago

@KadlagAkash Looks good. You can proceed with opening a PR for the same. Thank you