You've got the basics of Docker in your tool belt with some experience managing containers, running services like MongoDB or RabbitMQ, and even building basic Docker images.
But now it's time to look at building real software applications. It's time to run Node.js with your application code, and learn how to keep your applications isolated from each other.
But, how? What are the best options for getting Node.js into a Docker image, and how do you organize and execute your code?
Not a WatchMeCode member?
Join now and get instant access to everything!
Wth this guide to building Node.js apps in Docker, you'll learn how you can take advantage of the power Docker packs.
Learn the basics of building a Node.js Docker image. Install NPM modules, and using tools like Nodemon and Grunt to run your application's development processes. Debug your code, live in a Docker container, and more.
Before you get stated with this guide…
If you need help getting up to speed with Docker, check out the guide on
Learning how to use Docker.
Part 1: A Basic Node.js Docker App
Now that you know how to run Docker images and containers – and build your own – it's time to get down to running your application.
This part of the guide will show you how to get Node.js running in your container, how to put your code into it, organize the file system, run npm install, and generally take care of all your application dependencies.
A Basic Node.js Docker App
Need help remembering Docker's command line or Dockerfile configuration?
You'll never need to worry about memorizing Docker commands or Dockerfile configuration options, again.
Part 2: Writing Node.js Code In Docker
With your Node.js code running inside of Docker, it's time to start looking at what it takes to edit code and develop your app in a container.
This part of the guide will walk you through the basics of not just running, but editing code in a Docker container. You'll learn how to create a development version of your Docker container. You'll edit code in the container with your favorite editor on your computer. And you'll see what it takes to debug code in a live container.
Coding in Docker Containers
Part 3: Running Build Tools In Docker
You can run a Node.js app in a Docker container now. You can edit code in a container through a mounted volume, and have it immediately be available in the container. You can even debug your code directly in the container.
With part 3 of the this guide, you'll learn how to use your favorite tools inside of a Docker container. You'll see which types of tools can be used as a part of your Docker image. And you'll learn when to run a tool as a part of an existing container instance, instead.
Running Tools in a Docker Container
More on the way!
Beyond the basics of writing and debugging code, there's the question of development tools, like Babel, JSHint, Grunt, etc.
And then there's the question of building larger systems with database needs, messaging with RabbitMQ and beyond.
Stay tuned as this guide continued to grow with additional sections covering these topics and more!