What it does
Nginx receives requests first, then forwards them to the right app or service based on path, host, or rule.
This page explains how one front-facing service can receive browser traffic and then forward requests to the correct container behind the scenes.
Nginx receives requests first, then forwards them to the right app or service based on path, host, or rule.
It centralizes domains, SSL, routing, and port management so app containers can stay focused on application logic.
Browser traffic often hits Nginx on port 80 or 443, and Nginx forwards traffic to internal containers on their private ports.
Browser -> nginx:80
nginx -> frontend:3000
nginx -> backend:5000
The user only sees the public web address. Internal container ports remain hidden behind the proxy.
Nginx is not replacing your backend. It is standing in front of it, guiding incoming traffic to the correct destination.
Next page: Lesson 20 brings frontend, backend, and database together into one full stack Docker workflow.