Setup Nginx Proxy Manager
Simplify Your Server Management with Nginx Proxy Manager
Nginx Proxy Manager (NPM) is an open-source, user-friendly reverse proxy solution that simplifies managing web applications and services. It comes with a graphical user interface (GUI) that makes it easy to manage multiple web hosts, SSL certificates, and more. If youāre tired of configuring Nginx manually, this tool is perfect for you.
Why Nginx Proxy Manager?
- Ease of Use: The GUI eliminates the need for complex command-line configurations.
- SSL Management: Automatically fetch and renew SSL certificates via Letās Encrypt.
- Multiple Services: Effortlessly manage multiple web hosts on a single IP.
- Free & Open Source: A powerful solution available to everyone.
Setting Up Nginx Proxy Manager with Docker Compose
Hereās how to quickly deploy Nginx Proxy Manager using Docker Compose.
Docker Compose File
1
2
3
4
5
6
7
8
9
10
11
12
services:
app:
container_name: NginxProxyManager
image: 'jc21/nginx-proxy-manager:2.11.3'
restart: unless-stopped
ports:
- '80:80'
- '81:81'
- '443:443'
volumes:
- /nginx-proxy-manger/data:/data
- /nginx-proxy-manger/letsencrypt:/etc/letsencrypt
Key Configuration Notes
- Ports:
80
for HTTP traffic443
for HTTPS traffic81
for accessing the admin interface
- Volumes:
/nginx-proxy-manager/data
stores application data./nginx-proxy-manager/letsencrypt
stores SSL certificates.
Official Documentation
Refer to the Nginx Proxy Manager Guide for detailed setup instructions and advanced configurations.
Accessing the Admin Panel
Once the container is up and running, you can access the admin interface at:
- URL: http://127.0.0.1:81
- Default Admin Credentials:
- Email:
[email protected]
- Password:
changeme
- Email:
Make sure to change the default credentials immediately after logging in.
How to Use Nginx Proxy Manager
Set Up Hosts:
Add your services by creating proxy hosts. Specify the source domain and forward requests to the respective applicationās IP and port.Manage SSL Certificates:
Use the Letās Encrypt integration to secure your applications with HTTPS.Monitor Traffic:
Leverage the logs and dashboard to monitor and troubleshoot your services.
Why Docker for Nginx Proxy Manager?
Docker simplifies deployment and management. With the restart: unless-stopped
policy, your NPM container automatically restarts in case of a system reboot or crash, ensuring minimal downtime.
Conclusion
Nginx Proxy Manager combines the power of Nginx with a user-friendly interface, making it a must-have for anyone managing multiple web services. Whether youāre setting up a simple website or hosting complex applications, NPM simplifies your life.
Ready to get started? Check out the official documentation for more tips and tricks!