Ports and Protocols Documentation
This document outlines the required ports and protocols used in MANTLE Enterprise, which includes FastAPI (backend), MongoDB (database), React (frontend), and Nginx (reverse proxy).
Application Components and Corresponding Ports
Web Traffic
Service |
Port(s) |
Protocol |
Description |
HTTP |
80 |
TCP |
Exposed but immediately redirected to HTTPS. |
HTTPS |
443 |
TCP |
Secure web traffic and API requests. |
Authentication & File Uploads
Service |
Port(s) |
Protocol |
Description |
Authentication |
443 |
TCP |
User authentication requests over HTTPS. |
File Uploads |
443 |
TCP |
Handles asset and file uploads over HTTPS. |
Networking & Infrastructure
Service |
Port(s) |
Protocol |
Description |
SSH |
22 |
TCP/UDP |
Secure Shell for remote access. |
DHCP |
67, 68 |
UDP |
Dynamic Host Configuration Protocol (for IP address assignment). |
DNS |
53 |
TCP/UDP |
Domain Name System for resolving hostnames. |
NTP |
123, 1023 |
UDP |
Network Time Protocol for time synchronization. |
Port Usage in Dockerized Environment
MANTLE Enterprise services operate inside Docker containers, and the following mappings are utilized:
- FastAPI (backend): Runs internally and serves traffic through Nginx.
- React (frontend): Serves UI over HTTPS (443).
- MongoDB: Runs on
27017
but is strictly an internal connection and not exposed outside the container network.
- Nginx: Handles incoming requests and ensures all traffic is served over HTTPS (443), with HTTP (80) redirected to HTTPS.