---
title: "Discussion on \"How To: Deploy Next.js Apps with Docker Containers (Efficiently!)\" | Hashnode"
description: "Discussion on \"How To: Deploy Next.js Apps with Docker Containers (Efficiently!)\". (or any Node app, really - these tips work across the board)"
url: "https://hashnode.com/posts/docker-containers-nodejs-nextjs/60bdf8d6e36d51141c95e0a7"
---

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

Discussion

# [How To: Deploy Next.js Apps with Docker Containers (Efficiently!)](https://blog.zack.computer/docker-containers-nodejs-nextjs?utm_source=hashnode&utm_medium=feed)

(or any Node app, really - these tips work across the board)

Jun 7, 2021 · 10 min read · blog.zack.computer  
Read the article

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

## Written by

[Zack Sheppard](https://hashnode.com/@zackdotcomputer)

@zackdotcomputer · London, UK

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

iOS / Server / Web developer

Currently: I'm a frontend dev and product maker working for myself and freelance clients from my office in London. Previously I could be found: flying around the globe in 80 days, working 7 years at Foursquare, including managing their apps teams, and scraping together a classic New York life as an actor/bartender.

## Responses 4

Markdown supported · ⌘↵ to post

[Ender Bonnet](https://hashnode.com/@enBonnet)

[Jan 20, 2022](https://hashnode.com/posts/docker-containers-nodejs-nextjs/60bdf8d6e36d51141c95e0a7/comment/61e936c3bd377860a9ae91d7)

Thanks it helps me, to deploy on `fly.io` I just change the port to 8080 instead of 3000

[Nemanja Mitic](https://hashnode.com/@nemanjam)

[Dec 31, 2021](https://hashnode.com/posts/docker-containers-nodejs-nextjs/60bdf8d6e36d51141c95e0a7/comment/61cf12aeb9f0453f6d321f6e)

What about the fact that Next.js needs database connection at container build time?

https: //i.postimg. cc/pV7Sg2SF/image .png

https: //i.postimg. cc/rp8ZSzDv/image .png

[Catalin Pit](https://hashnode.com/@Catalinpit)

[Jun 8, 2021](https://hashnode.com/posts/docker-containers-nodejs-nextjs/60bdf8d6e36d51141c95e0a7/comment/60bf2859fffc4c13b9cda79d)

I bookmarked it! It's a very useful article that will help me! 🔥

Thank you!
