Files
2025-12-17 14:59:17 +01:00

2.4 KiB
Raw Permalink Blame History

title, linkTitle, description, keywords, summary, toc_min, toc_max, aliases, languages, tags, params
title linkTitle description keywords summary toc_min toc_max aliases languages tags params
Node.js language-specific guide Node.js Containerize and develop Node.js apps using Docker getting started, node, node.js This guide explains how to containerize Node.js applications using Docker. 1 2
/language/nodejs/
/guides/language/nodejs/
js
time
20 minutes

Node.js is a JavaScript runtime for building web applications. This guide shows you how to containerize a TypeScript Node.js application with a React frontend and PostgreSQL database.

The sample application is a modern full-stack Todo application featuring:

  • Backend: Express.js with TypeScript, PostgreSQL database, and RESTful API
  • Frontend: React.js with Vite and Tailwind CSS 4

Acknowledgment

Docker extends its sincere gratitude to Kristiyan Velkov for authoring this guide. As a Docker Captain and experienced Full-stack engineer, his expertise in Docker, DevOps, and modern web development has made this resource invaluable for the community, helping developers navigate and optimize their Docker workflows.


What will you learn?

In this guide, you will learn how to:

  • Containerize and run a Node.js application using Docker.
  • Run tests inside a Docker container.
  • Set up a development container environment.
  • Configure GitHub Actions for CI/CD with Docker.
  • Deploy your Dockerized Node.js app to Kubernetes.

To begin, youll start by containerizing an existing Node.js application.


Prerequisites

Before you begin, make sure you're familiar with the following:

  • Basic understanding of JavaScript and TypeScript.
  • Basic knowledge of Node.js, npm, and React for modern web development.
  • Understanding of Docker concepts such as images, containers, and Dockerfiles. If you're new to Docker, start with the Docker basics guide.
  • Familiarity with Express.js for backend API development.

Once you've completed the Node.js getting started modules, youll be ready to containerize your own Node.js application using the examples and instructions provided in this guide.