Nginx Proxy Manager - Part 1- Deployment | NPM Home Lab setup 😊 DevOps in Action

 

Nginx Proxy Manger Deployment using Docker Run & Docker Compose

NPM
Nginx Proxy Manager

Nginx Proxy Manager?

Nginx Proxy Manager is a user-friendly interface for managing and configuring Nginx as a reverse proxy server. Nginx is a popular web server and reverse proxy used to handle requests, load balance, and direct traffic to different services or applications.

Official Documentation: https://nginxproxymanager.com/

Prerequisites

  • Basic understanding of Docker.
  • Docker must be installed on your system.
  • Basic knowledge of command-line operations.

Deployment Guide

1. Using Docker run command

docker run -itd --name=c_nginx_proxy_manager --restart=always -p 80:80 -p 81:81 -p 443:443 -v $(pwd)/nginx-proxy-manager/data:/data -v $(pwd)/nginx-proxy-manager/letsencrypt:/etc/letsencrypt jc21/nginx-proxy-manager:latest

2. Using Docker Compose

Create compose file
nano compose.yml
services:
  npm:
    image: jc21/nginx-proxy-manager:latest
    container_name: npm
    hostname: npm
    restart: unless-stopped
    environment:
      - DISABLE_IPV6 = 'true'
      - TZ=TZ=Asia/Kolkata
      - PUID=1000 # see https://nginxproxymanager.com/advanced-config/
      - PGID=1000 # see https://nginxproxymanager.com/advanced-config/
    ports:
      - 80:80/tcp # HTTP
      - 443:443/tcp # HTTPS
      - 81:81/tcp # MGMT UI, do not expose publicly
    dns:
      - 8.8.8.8
      - 8.8.4.4
    healthcheck:
      test: ["CMD", "/bin/check-health"]
      interval: 30s
      timeout: 3s
    volumes:
      - ./nginx-proxy-manager/data:/data
      - ./nginx-proxy-manager/letsencrypt:/etc/letsencrypt
Run container
docker-compose up -d
Access NPM Server
http://your_ip_or_FQDN:81
admin@example.com
changeme

💼 Connect with me 👇👇 😊

SHARE

Ibrar Ansari

  • Image
  • Image
  • Image
  • Image
  • Image
    Blogger Comment
    Facebook Comment

0 comments:

Post a Comment