How to Install Nginx Proxy Manager on Ubuntu Server Latest

Nginx Proxy Manager is a powerful tool that provides an easy-to-use web-based interface for managing Nginx reverse proxy servers. In this tutorial, we will walk through the steps to install Nginx Proxy Manager on Ubuntu Server.

Prerequisites

Before you begin, you need to have the following:

Step 1: Update the System

Before you start installing any packages on your Ubuntu server, it is recommended to update the system's repository information and installed packages to the latest version.

sudo apt update
sudo apt upgrade

Step 2: Install Docker

Nginx Proxy Manager is distributed as a Docker container. Therefore, you need to install Docker on your system. You can do this by running the following command:

sudo apt install docker.io

Step 3: Install Docker Compose

Docker Compose is a tool that helps you define and run multi-container Docker applications. You can use it to manage the Nginx Proxy Manager Docker container. To install Docker Compose, run the following commands:

sudo curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose

Step 4: Install Nginx Proxy Manager

Now that you have Docker and Docker Compose installed, you can proceed to install Nginx Proxy Manager. To do this, follow these steps:

  1. Clone the Nginx Proxy Manager repository on your server using the following command:

    git clone https://github.com/nginx-proxy-manager/nginx-proxy-manager.git
    
  2. Change to the Nginx Proxy Manager directory:

    cd nginx-proxy-manager
    
  3. Create the .env file by copying the example file:

    cp .env.sample .env
    
  4. Edit the .env file to configure the application settings:

    nano .env
    
  5. Use CTRL + O and CTRL + X to save and exit the file.

  6. Start the Nginx Proxy Manager using Docker Compose:

    docker-compose up -d
    
  7. Wait for the installation to complete, and your Nginx Proxy Manager is available at http://YOUR_SERVER_IP:81.

Conclusion

In this tutorial, you have learned how to install Nginx Proxy Manager on Ubuntu Server. You can now use the powerful and easy-to-use web interface to manage your Nginx proxy servers.

If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!

Alternatively, for the best virtual desktop, try Shells!