Post

Setup Nginx Proxy Manager

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 traffic
    • 443 for HTTPS traffic
    • 81 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:

Make sure to change the default credentials immediately after logging in.


How to Use Nginx Proxy Manager

  1. 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.

  2. Manage SSL Certificates:
    Use the Let’s Encrypt integration to secure your applications with HTTPS.

  3. 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!

This post is licensed under CC BY 4.0 by the author.