Ưu đãi trong tuần: Nhập mã UD50 giảm 50k cho đơn từ 300k!
Trang chủ
Menu

Docker for Node.js Projects From a Docker Captain

Docker cho Dự Án Node.js từ một Docker Captain

Docker cho Dự Án Node.js từ một Docker Captain

Xây dựng image Node nâng cao cho môi trường dev, test và prod với các thực hành DevOps mới nhất từ chuyên gia container

4.5
(1,523 đánh giá)
14,484 học viên
Giảng viên
Bret Fisher
Phụ đề Việt chất lượng cao Phụ đề tiếng Anh Bán chạy Đánh giá cao
50.000đ 349.000đ -86%
✓ Xem giỏ hàng và thanh toán
Bao gồm phụ đề tiếng Việt, tiếng Anh
8.5 giờ video
84 bài giảng
Truy cập vĩnh viễn
Học trên mọi thiết bị
Cập nhật: 30/05/2026

Bạn sẽ học được gì

Tối ưu hóa thiết lập phát triển cục bộ cho NodeJS trong Docker
Vận hành trơn tru trong nhóm lập trình viên NodeJS sử dụng Docker và Compose
Cải thiện tốc độ và độ tin cậy của quá trình build và test Node bằng Docker
Nhận các tinh chỉnh NodeJS tốt nhất để sử dụng cho dev, test và prod
Thiết kế image NodeJS để sử dụng với Kubernetes và Swarm
Tìm hiểu về quét bảo mật và khóa chặt ứng dụng NodeJS của bạn

Yêu cầu

Biết Docker 101: kiến thức cơ bản về Docker như images, containers và docker networks
Biết NodeJS 101: Hiểu cơ bản về ngôn ngữ NodeJS và các framework
Biết cơ bản về command line và shell, cũng như trình quản lý gói như apt hoặc yum
Quen thuộc với kiến thức cơ bản về lập trình, điện toán đám mây và cách triển khai ứng dụng lên server
Sử dụng máy tính Linux, Windows hoặc macOS hiện đại hỗ trợ Docker

Đối tượng phù hợp

Lập trình viên NodeJS có kiến thức Docker cơ bản muốn tận dụng tối đa lợi ích của container
Kỹ sư build NodeJS muốn cải thiện thiết lập testing và quy trình CI/CD
Lập trình viên NodeJS mới muốn sử dụng Docker với tất cả các thực hành tốt nhất cho Node
Người vận hành server muốn tối ưu hóa việc triển khai và cải thiện độ ổn định của ứng dụng NodeJS
Người dùng Docker muốn hiểu cách triển khai và sử dụng NodeJS tốt nhất và an toàn nhất

Nội dung khóa học

11 phần • 84 bài giảng
1 Giới thiệu và Lộ trình Khóa học
2 Tận Dụng Tối Đa Khóa Học Này
3 Tải Tài nguyên Khóa học (GitHub Repo)
4 Trò chuyện Khóa học với Học viên đang học Containers
5 Hỏi đáp Trực tiếp Hàng tuần trên YouTube với Bret
1 Giới thiệu Phần: Compose Cơ bản
2 Cài đặt Đúng Phiên bản Docker và Compose
3 Tại sao dùng Compose?
4 Định dạng File Compose
5 CLI docker-compose
6 Bài tập: Compose CLI Cơ bản
7 Đáp án Bài tập: Compose CLI Cơ bản
1 Giới thiệu Phần: Thực hành Tốt nhất về Dockerfile
2 Thực hành Tốt nhất về Dockerfile Cơ bản
3 Hướng dẫn về Base Image FROM
4 Khi nào Nên dùng Image Alpine, Debian, hoặc CentOS
5 Bài tập Tạo Image Node CentOS
6 Đáp án Bài tập: Tạo Image Node CentOS
7 Chạy Container với Người dùng Non-root
8 Tính năng WORKDIR thay đổi trong video tiếp theo
9 Làm việc với Giới hạn Người dùng Node
10 Tạo Image Hiệu quả
1 Giới thiệu Phần: Kiểm soát Tiến trình Node
2 Quản lý Tiến trình Node
3 Sự thật về Vấn đề PID 1
4 Tùy chọn Tắt Node Đúng cách
5 Bài tập: Viết Dockerfile cho Node
6 Đáp án Bài tập: Viết Dockerfile cho Node
7 Bài tập: Kiểm tra Tắt Ứng dụng Mượt mà
8 Đáp án Bài tập: Kiểm tra Tắt Ứng dụng Mượt mà
1 Giới thiệu Phần: Dockerfile Node Nâng cao
2 Thay đổi lệnh NPM
3 Docker Build Multi-stage
4 Thêm Công dụng của Multi-stage
5 Bài tập: Xây dựng Dockerfile 3 Giai đoạn
6 Đáp án Bài tập: Xây dựng Dockerfile 3 Giai đoạn
7 BuildKit, Trình Build Thế hệ Mới
8 Sử dụng BuildKit để Bật SSH Keys cho Private NPM Repositories
9 Sử dụng BuildKit để Tái sử dụng NPM Cache
1 Giới thiệu Phần: Ứng dụng Node trong Docker Cloud Native
2 Hướng dẫn Ứng dụng Cloud Native
3 Ứng dụng Twelve Factor - Cấu hình
4 Ứng dụng Twelve Factor - Logs
5 File .dockerignore
6 Bài tập Di chuyển Ứng dụng Truyền thống
7 Đáp án Bài tập Di chuyển Ứng dụng Truyền thống
1 Giới thiệu Phần: Compose cho Phát triển Cục bộ Tuyệt vời
2 Mẹo Dự án Compose
3 Bind-Mounting Code, Tối ưu hóa Hiệu suất
4 Node Modules Trong Images
5 Node Modules Trong Bind-Mounts
6 NPM, Yarn và Công cụ Khác trong Compose
7 Giám sát File và Tự động Khởi động lại Node
8 Thứ tự Khởi động và Phụ thuộc
9 Healthchecks cho depends_on
10 Thu gọn File Compose và YAML DRY
11 Làm Microservices Dễ dàng hơn với Compose
12 VS Code, Debugging và TypeScript
13 Bài tập: Xây dựng File Compose Hoàn hảo
14 Đáp án Bài tập: Xây dựng File Compose Hoàn hảo
1 Giới thiệu Phần: Tạo Image Container Sẵn sàng cho Production
2 Tránh devDependencies Trong Prod
3 Ghi chú, Đối số và Nhãn trong Dockerfile
4 Chạy Tests Trong quá trình Build Image
5 Quét Bảo mật Trong quá trình Build Image
6 CI Automated Testing và Gắn thẻ Image Đúng cách
7 Thêm Healthchecks
8 Bài tập: Tạo Dockerfile Node.js Tối ưu của Bạn
9 Đáp án Bài tập: Tạo Dockerfile Node.js Tối ưu của Bạn
10 Đáp án Bài tập BONUS: Tạo Dockerfile Node Tối ưu của Bạn
1 Giới thiệu Phần
2 Vấn đề Đa luồng trong Node.js
3 Tại sao Không dùng Compose Trong Production?
4 Container Node.js Với Proxies
5 Thay thế Container và Quản lý Kết nối
6 Node.js Với Container Orchestration
7 Node.js Với Docker Swarm
1 Tình trạng ARM và Docker cho Node.js
2 Chạy Container Node.js ARM Cho Phát triển
3 Chạy Container Node.js ARM Cho Production
4 Tương lai của Docker Đa kiến trúc: Làm ARM Dễ dàng hơn
1 Bài nói chuyện DockerCon của Bret về Docker Production
2 Podcast DevOps và Docker của Bret
3 Phần Thưởng

Giới thiệu khóa học

This course recommends downloading Docker Desktop and other free virtual machine and container tools. If you are a Udemy Business user, please check with your employer before downloading software.

2023: Fixes still happening when needed, and the course is being maintained regularly.
Welcome to the best course on the planet for using Docker with Node.js!
With your basic knowledge of Docker and Node.js in hand, Docker Mastery for Node.js is a course for anyone on the Node.js path. This course will help you master them together.

I'm your instructor Bret, an Award Winning Docker Captain, DevOps community leader, and a bestselling Udemy author. I built this course for you because I live and breathe Docker containers, and I've enjoyed using Node.js since 2012. They work great together, and I'll show you how!

Learn the cutting edge features of Docker that will make your Node.js apps build faster, smaller, and run more securely and reliability. Containers and Node.js are two of the hottest and most popular topics in tech.

It's just as important to know what not to do, as well the best ways to use Node.js in Docker, and I teach a huge amount of info in this course for do's and don'ts with Node.js in Docker.

You want assignments? We go through assignments using all sorts of Node.js + Docker setups. Single-container CLI apps, database-backed web apps, Express.js, hapi.js, distributed micro-service apps, Angular, Websockets, HTTP Proxies, MongoDB with proper connection shutdown, and more.

**NOTE: Be sure you know Docker basics and Node.js basics before starting this course. I suggest my Docker Mastery course first if you are new to Docker. Also read the course requirements!**

"Bret is amazing. You can tell he knows exactly what he is talking about and enjoys helping others. I have never seen someone so involved with his user base as Bret. Direct messages via slack, live youtube broadcasts, newsletters, etc. I don't know how he does it... I would seriously buy any course that Bret puts out because I have no doubts that it will be excellent." — David Olson, Udemy student, Docker Mastery course.

"Great introduction. Bret delivers great resources and instructions. He is the guy you want to learn from when it comes to Docker. The real deal. Worth the money and more." —Joseph Martinez, Udemy student, Docker Mastery course

Some of the many cool things you'll do in this course:

  • Build Node.js Images that auto-scan for security vulnerabilities

  • Use Docker's cutting-edge BuildKit with SSH Agents and NPM Caches for better image building

  • Use docker-compose with Visual Studio Code for full Node.js debug support in Docker

  • Ensure you're using all the latest features of Docker Desktop

  • Use BuildKit and Multi-stage Builds to create minimal and flexible Dockerfiles

  • Build custom Node.js images using distro's like CentOS and Alpine

  • Test Docker init, tini, and Node.js as a PID 1 process in containers

  • Create Node.js apps that properly startup and respond to healthchecks

  • Build graceful shutdown code into your apps for zero-downtime deploys

  • Dig into HTTP connections with orchestration, and how Proxies can help

  • Study examples of Docker Swarm and Kubernetes deployments for Node.js

  • Migrate traditional (legacy) Node.js apps into containers

  • Simplify your microservice solutions with advanced Docker Compose features

"Bret is a naturally born instructor, docker and swarm GURU...Bret gives clear and unbiased recipes for real world scenarios of handling docker files." — Marciej Domanski, Udemy student, Docker Mastery course.

"This speaker is powerful! The speaker instantly gained my excitement and favor which is exactly what I was hoping would happen. This excellent connection makes it easy for me to follow along." — Kendra, Udemy student, Docker Mastery course.

Extra things that come with this course:

  • Access to the course Slack Chat team, for getting help/advice from me and other students.

  • Weekly YouTube Live Q&A's where you can ask me questions live.

  • Bonus videos I put elsewhere like YouTube and share via Udemy announcements.

  • Tons of reference links to supplement this content.

  • Updates to content as products change their features on these topics.

What you will learn in this course:

You'll start with a quick review about getting set up with Docker, as well as Docker Compose basics. That way we're on the same page for the basics.

Then you'll jump into Node.js Dockerfile basics, that way you'll have a good Dockerfile foundation for new features we'll add throughout the course.

You'll be building on all the different things you learn from each Lecture in the course. Once you have the basics down of Compose, Dockerfile, and Docker Image, then you'll focus on nuances like how Docker and Linux control the Node process and how Docker changes that to make sure you know what options there are for starting up and shutting down Node.js and the right way to do it in different scenarios.

We'll cover advanced, newer features around making the Dockerfile the most efficient and flexible as possible using things like BuildKit and Multi-stage.

Then we'll talk about distributed computing and cloud design to ensure your Node.js apps have 12-factor design in your containers, as well as learning how to migrate old apps into this new way of doing things.

Next we cover Compose and its awesome features to get really efficient local development and test set-up using the Docker Compose command line and Docker Compose YAML file.

With all this knowledge, you'll progress to production concerns and making images production-ready.

Then we'll jump into deploying those containers and running them in production. Whether you use Docker Engine or orchestration with Kubernetes or Swarm, I've got you covered. In addition, we'll cover HTTP connections and reverse proxies for connection handling and routing with multi-container systems.

Lastly, you'll get a final, big assignment where you'll be building and deploying a large, complex solution, including multiple Node.js containers that are doing different things. You'll build Docker images, Dockerfiles, and compose files, and deploy them to a server to test. You'll need to check whether connections failover properly. You'll basically take everything you've learned and apply it in one big project!

"Bret knows, lives, breaths and loves his technology stack. The passion and belief always comes through in all of his courses which is why I will always recommend his work." — Steven Hunt, Udemy student, Docker Swarm Mastery course

Why should you learn from me?

  • I'm A Practitioner. Welcome to the real world: I've got more than 20 years of sysadmin and developer experience, over 30 certifications, and have been using Docker and Node.js for myself and my consulting clients since their early days. With me, you’re learning from someone who's helped run many hundreds of container apps across dozens of projects and organizations.

  • I'm An Educator. With me, you’ll learn from someone who knows how to make a syllabus: I want to help you. People say I'm good at it. I won a 2018 Leadership Award at DockerCon for helping others learn. For the last few years I've trained thousands of people on using Docker in workshops, conferences and meetups. See me teach at events like DockerCon, O'Reilly Velocity, GOTO, and Linux Open Source Summit.

  • I Lead Communities. Also, I'm a Docker Captain, which means Docker Inc. thinks I know a thing or two about Docker and that I do well in sharing it with others. In the real-world: I run two local meetups in our fabulous tech community in Norfolk/Virginia Beach USA. I help online: usually in Slack and Twitter, where I learn from and help others.

"This is the best teacher i know, not because he teaches me, but because he forces me to learn for myself in the framework he has set." — Fabian Letsch, Udemy student, Docker Mastery course.

Giving Back: a portion of my profit on this course will be donated to supporting open source and protecting our freedoms online! This course is only made possible by the amazing people creating open source. I'm standing on the shoulders of (open source) giants! Donations will be split between my favorite charities including the Electronic Frontier Foundation and Free Software Foundation. Look them up. They're awesome!

This is a living course, and will be updated as features and workflows change.

This course is designed to be fast at getting you started but also get you deep into the "why" of things. Simply the fastest and best way to learn the latest docker skills. Look at the scope of topics in the Sessions and see the breadth of skills you will learn.

Also included is a private Slack Chat group and weekly Live YouTube Q&A for getting help with this course and continuing your Docker, Node.js, and DevOps learning with help from me and other students.

Thanks so much for considering this course. Come join me and thousands of others in this course (and my others) for learning the latest DevOps tech! - Bret

Khóa học liên quan

Khám phá thêm các khoá học cùng chủ đề

Hiển thị tất cả khoá học Cloud Computing
Hiển thị tất cả khoá học Devops
Hiển thị tất cả khoá học Docker
Hiển thị tất cả khoá học Node Js
Zalo
Tôi có thể tư vấn khoá học cho bạn 😊