NginxProxyManager simplifies managing and configuring Nginx reverse proxy. this post provides a detailed guide on how to install it on a Linux server.
Table of Contents:
- What is NginxProxyManager?
- Step 1: Install Docker and Docker Compose
- Step 2: Create a docker-compose.yml File
- Step 3: Bring Up the Stack
- Step 4: Access the Admin Interface
What is NginxProxyManager?
NginxProxyManager is an open-source tool comes with a web interface that provides a way to manage Nginx proxy. stops the need for manual Nginx configuration file editing, making it accessible to everyone.
Step 1: Install Docker and Docker Compose
Update the system’s packages :
sudo apt update && sudo apt upgrade -y
sudo apt install docker.io
Start and enable the Docker service:
sudo systemctl start docker sudo systemctl enable docker
Install Docker Compose:
sudo apt install docker-compose
Step 2: Create a docker-compose.yml File
docker-compose.yml file. This file makes the configuration of the NginxProxyManager container. Open a text editor and create a new file called
docker-compose.yml. (you can use nano to create yml
nano docker-compose.yml)Paste the following content into the file:
version: '3.8' services: app: image: 'jc21/nginx-proxy-manager:latest' restart: unless-stopped ports: - '80:80' - '81:81' - '443:443' volumes: - ./data:/data - ./letsencrypt:/etc/letsencrypt
Step 3: Bring Up the Stack
Navigate to the directory where you saved the
docker-compose.yml file and execute:
docker-compose up -d
Step 4: Access the Admin Interface
You can access the NginxProxyManager admin interface using your web browser. By default, the interface is accessible on port 81.use the following URL:
On the login page, enter the following default admin credentials:
- Email: [email protected]
- Password: changeme
After logging in with the default user, you must change the password.
By following this guide, you can quickly set up NginxProxyManager on your Linux server and start managing your proxy tasks. Explore the official documentation for additional configuration options.