A powerful open-source tool renowned for its high performance, stability, and low resource consumption. It functions as a versatile solution for modern web infrastructure, handling a wide range of tasks beyond simple web serving. Its primary roles include being a high-performance HTTP web server, a reverse proxy for directing client requests to the appropriate backend server, a content cache to speed up content delivery, and a robust load balancer to distribute traffic across multiple servers.
It also operates as a generic TCP/UDP proxy server and a mail proxy server (IMAP, POP3, SMTP), making it a comprehensive tool for network traffic management. The architecture is designed for scalability and can handle a massive number of concurrent connections with a minimal memory footprint. The ecosystem extends into cloud-native environments with projects like the NGINX Ingress Controller for Kubernetes and the NGINX Gateway Fabric, which implements the Kubernetes Gateway API. Functionality can be further extended using the NGINX JavaScript module (njs) for complex configurations.
services:
nginx:
image: nginx:latest
container_name: nginx
restart: unless-stopped
ports:
- "80:80"
- "443:443"
volumes:
- ./html:/usr/share/nginx/html:ro
- ./conf.d:/etc/nginx/conf.d:ro
- ./logs:/var/log/nginx# The official NGINX image does not require sensitive environment variables by default.
# If you are using NGINX templates with envsubst, you can define your custom variables here.
Auto-fetched about 19 hours ago
Auto-fetched about 19 hours ago