# Install Nginx Proxy Manager on Linux

By
Adrien

# System Specification

Recommanded
Processor 1 vCore
Memory 1GB RAM
Storage 5Go (minimum)

# Steps to follow

  1. Create a Nginx Proxy Manager user
sudo adduser npm
sudo passwd npm
sudo groupadd npm
sudo usermod -aG npm npm
sudo su - npm
  1. Install Docker and Docker Compose

Install Docker and Docker Compose
../ubuntu-docker/

  1. Create Docker Yaml File
nano ./docker-compose.yml
version: "3"
services:
  app:
    image: 'jc21/nginx-proxy-manager:latest'
    restart: unless-stopped
    ports:
      # These ports are in format <host-port>:<container-port>
      - '80:80' # Public HTTP Port
      - '443:443' # Public HTTPS Port
      - '81:81' # Admin Web Port
      # Add any other Stream port you want to expose
      # - '21:21' # FTP

    # Uncomment the next line if you uncomment anything in the section
    # environment:
      # Uncomment this if you want to change the location of 
      # the SQLite DB file within the container
      # DB_SQLITE_FILE: "/data/database.sqlite"

      # Uncomment this if IPv6 is not enabled on your host
      # DISABLE_IPV6: 'true'

    volumes:
      - ./data:/data
      - ./letsencrypt:/etc/letsencrypt
  1. Start service
docker-compose up -d

Default port : 81 Default email : admin@example.com Default password: changeme

  1. Startup option

Set PVE option : "start at boot" to yes, "order" to 2

Advanced Configuration
https://nginxproxymanager.com/advanced-config