Nginx Proxy Manager is a proxy management system based on Nginx. Nginx Proxy Manager provides web-based admin UI which allows managing proxy and redirection hosts, streams and SSL certificates.
This tutorial explains how to install Nginx Proxy Manager inside a Docker container in the Linux. Commands have been tested on Ubuntu.
Prepare environment
Make sure you have installed Docker in your system. If you are using Ubuntu, installation instructions can be found in the post.
Install Nginx Proxy Manager
- Host network
Run the following command to create a container for Nginx Proxy Manager that uses host network:
docker run -d --name=nginx-proxy-manager --restart=always --network=host \
-v /opt/nginx-proxy-manager/data:/data \
-v /opt/nginx-proxy-manager/letsencrypt:/etc/letsencrypt \
jc21/nginx-proxy-manager
- User-defined bridge network
User-defined bridge network can be used for listening on different port. By default, Nginx Proxy Manager service is listening for HTTP connections on port 80 and HTTPS connections on port 443. Admin UI is available on port 81. Ports can be changed with -p
option.
docker network create app-net
docker run -d --name=nginx-proxy-manager --restart=always --network=app-net \
-p 8080:80 -p 8081:81 -p 8082:443 \
-v /opt/nginx-proxy-manager/data:/data \
-v /opt/nginx-proxy-manager/letsencrypt:/etc/letsencrypt \
jc21/nginx-proxy-manager
Testing Nginx Proxy Manager
Open a web browser and go to http://<IP_ADDRESS>:81
, where <IP_ADDRESS>
is the IP address of the system. Log in to the admin UI with the default email (admin@example.com
) and password (changeme
).
Uninstall Nginx Proxy Manager
To completely remove Nginx Proxy Manager, remove its container:
docker rm --force nginx-proxy-manager
Remove Nginx Proxy Manager image:
docker rmi jc21/nginx-proxy-manager
You can also remove Nginx Proxy Manager data:
sudo rm -rf /opt/nginx-proxy-manager
If a user-defined bridge network was created, you can delete it as follows:
docker network rm app-net
Leave a Comment
Cancel reply