---
title: "Discussion on \"Dockerize your Development Environment for NodeJS\" | Hashnode"
description: "Discussion on \"Dockerize your Development Environment for NodeJS\". Using Docker in your development workflow has a positive impact on your productivity. It eliminates the typical \"It worked on my machine\" type of bugs and the setup on a different machine only requires a running Docker daemon and nothing else.\nBefore..."
url: "https://hashnode.com/posts/dockerize-your-development-environment-for-nodejs/5f7b7a6b9d088e603ef395ae"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Dockerize your Development Environment for NodeJS](https://klamser.dev/dockerize-your-development-environment-for-nodejs?utm_source=hashnode&utm_medium=feed)

Using Docker in your development workflow has a positive impact on your productivity. It eliminates the typical "It worked on my machine" type of bugs and the setup on a different machine only requires a running Docker daemon and nothing else. Before...

Oct 5, 2020 · 6 min read · klamser.dev  
Updated Oct 9, 2020  
Read the article

-   [#docker](https://hashnode.com/tag/docker)
-   [#nodejs](https://hashnode.com/tag/nodejs)
-   [#web-development](https://hashnode.com/tag/web-development)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#mongodb](https://hashnode.com/tag/mongodb)

## Written by

[Jakob Klamser](https://hashnode.com/@KlamserDEV)

@KlamserDEV · Hessen, Germany

  
[View profile](https://hashnode.com/@KlamserDEV)

Fullstack Developer, JavaScript

## Responses 4

Markdown supported · ⌘↵ to post

[Fawas Kareem](https://hashnode.com/@Phawazzzy)

[Nov 2, 2020](https://hashnode.com/posts/dockerize-your-development-environment-for-nodejs/5f7b7a6b9d088e603ef395ae/comment/5f9f60d7701b426a98095fa8)

Thank you for writing this, but i am totally new to docker, this is my first encounter with it, so after everything worked, where will i find the docker image or how do i use it. i am lost on this

[Jakob Klamser](https://hashnode.com/@KlamserDEV)

[Nov 2, 2020](https://hashnode.com/posts/dockerize-your-development-environment-for-nodejs/5f7b7a6b9d088e603ef395ae/comment/5f9f60d7701b426a98095fa8#reply-5f9ffb2ade85d46a77d5f436)

If you are in the root directory of the project an use the command „docker-compose up“ you will start the docker images

[Edidiong Asikpo (Didi)](https://hashnode.com/@didicodes)

[Oct 13, 2020](https://hashnode.com/posts/dockerize-your-development-environment-for-nodejs/5f7b7a6b9d088e603ef395ae/comment/5f85722ee83ccb407537a367)

Amazing article. Thanks for sharing.

[Krys Alead](https://hashnode.com/@Krysalead)

[Oct 8, 2020](https://hashnode.com/posts/dockerize-your-development-environment-for-nodejs/5f7b7a6b9d088e603ef395ae/comment/5f7efa0db4179e7e858817c1)

Hi,

Thanks for the article. I would nevertheless not use "latest" as a tag as depending on when you build your image you got a different version of node. Something I missed is when do you start your server (not the docker image) what is the magic happening that make your docker-compose up command running the npm start command?

[Jakob Klamser](https://hashnode.com/@KlamserDEV)

[Oct 8, 2020](https://hashnode.com/posts/dockerize-your-development-environment-for-nodejs/5f7b7a6b9d088e603ef395ae/comment/5f7efa0db4179e7e858817c1#reply-5f7f0409b4179e7e8588186f)

You are totally right about "latest". If you are just in development I don't mind it. But right before you deploy the first version of your software you need to specify a version.

For the npm start, I had an old Dockerfile. I updated it

[Krys Alead](https://hashnode.com/@Krysalead)

[Oct 8, 2020](https://hashnode.com/posts/dockerize-your-development-environment-for-nodejs/5f7b7a6b9d088e603ef395ae/comment/5f7efa0db4179e7e858817c1#reply-5f7f0c80b4179e7e858818fd)

Hi [Jakob Klamser](https://hashnode.com/@KlamserDEV)

I thought your article was about developing with Docker and Node and sharing the image with other developers requires to fix the version. And indeed once you are happy with your dev you need to fix it :). I was reasoning as a development environment for a large team.

[Jakob Klamser](https://hashnode.com/@KlamserDEV)

[Oct 8, 2020](https://hashnode.com/posts/dockerize-your-development-environment-for-nodejs/5f7b7a6b9d088e603ef395ae/comment/5f7efa0db4179e7e858817c1#reply-5f7f0d83cbb01b7e6418592d)

Hi [Krys Alead](https://hashnode.com/@Krysalead)

you are free to do so whenever you please. If you are sharing your development environment with your whole team fixing the nodejs version should be prioritized.

Totally agree with you there :)

[Bolaji Ayodeji](https://hashnode.com/@bolajiayodeji)

[Oct 7, 2020](https://hashnode.com/posts/dockerize-your-development-environment-for-nodejs/5f7b7a6b9d088e603ef395ae/comment/5f7e072a3de96f77a17a0f13)

Love this, thanks for sharing!
