Create a Nginx Reverse Proxy for a Node Server with Docker Compose

  Рет қаралды 5,512

WittCode

WittCode

Күн бұрын

Create a Nginx reverse proxy for a Node server application with Docker and Docker Compose. We will also learn how to work with environment variables in Nginx, Docker, and Node.
👩‍💻 Download Code 👨‍💻
wittcode.com
🛜 Download My Chrome Extension 🛜
chromewebstore.google.com/det...
💻 Compare Laptop Specs 💻
laptopspectable.com
🔴 Rare Pokemon Cards ⚪️
rarepokemoncards.com
👻 90s Nostalgia 👻
goosebumpsforsale.com
⌛Timestamps⌛
0:00 - Intro
0:10 - Project Demonstration
1:11 - Why use Nginx with Node?
1:39 - Creating Node Server
4:08 - Build Nginx Reverse Proxy
8:16 - Creating Node and Nginx Images with Docker
10:54 - Debugging
12:49 - Running the Program
13:35 - Inspecting Nginx Container
14:21 - Outro

Пікірлер: 7
@soumiahm7318
@soumiahm7318 4 ай бұрын
Great tutorial, thank you
@cursedtrousers8735
@cursedtrousers8735 8 ай бұрын
Nice bro
@Jared.Graham
@Jared.Graham 2 ай бұрын
how does this work with the frontend could you show a full stack version?
@WittCode
@WittCode 2 ай бұрын
Essentially I would say serve up the front end app with Express in development and then bundle it up and serve it up with Nginx in production. I have a few videos that go over this that I've made recently I believe!
@raulcalvo4230
@raulcalvo4230 8 ай бұрын
Wouldn’t it be “better” to use volumes or bind mount to copy the content in server to the container?. Thanks for the tutorials
@WittCode
@WittCode 8 ай бұрын
Hey there thanks! Yeah for development I usually have volumes for both the nginx container and node server just didn't do it in this video!
@denizbedel9366
@denizbedel9366 4 ай бұрын
Do you realy need nginx: --> image: nginx you have your dockerfile
Nginx Custom Bad Gateway Page
5:18
WittCode
Рет қаралды 477
Nginx Environment Variables with Docker
7:30
WittCode
Рет қаралды 1 М.
Finger Heart - Fancy Refill (Inside Out Animation)
00:30
FASH
Рет қаралды 25 МЛН
Best Toilet Gadgets and #Hacks you must try!!💩💩
00:49
Poly Holy Yow
Рет қаралды 19 МЛН
Nginx Access and Error Logs
6:26
WittCode
Рет қаралды 144
Docker Networking Custom Network Custom Subnet - Video 54
4:13
How to create a great dev environment with Docker
29:55
Patrick Loeber
Рет қаралды 256 М.
Deploy Web App with Docker, Nginx and SSL (HTTPS)
20:32
Huakun
Рет қаралды 45 М.
How to Run a Cron Job Inside a Docker Container
4:10
WittCode
Рет қаралды 847
Is this the BEST Reverse Proxy for Docker? // Traefik Tutorial
21:57
Christian Lempa
Рет қаралды 505 М.