4pfsec Homelab
  • 4pfsec Home Lab by Nee
  • Operating System
    • Ubuntu 20.04.3 LTS (with gnome)
  • Networking
    • pfSense
    • Nginx Proxy Manager
    • Cloudflare
  • System Services / Software
    • Docker & Docker-Compose
    • CIFS / SMB Shares
  • Self-Hosted Services
    • Homer
    • Navidrome
    • Jellyfin
    • Deluge
    • File Browser
    • Pasty
    • NextCloud
  • Security
    • Nord
Powered by GitBook
On this page
  • About
  • Docker-Compose
  1. Networking

Nginx Proxy Manager

Reverse Proxy

PreviouspfSenseNextCloudflare

Last updated 2 years ago

About

I use Nginx Proxy Manager as my primary reverse proxy. It helps me hide all my services behind one single port. I haven't had any issues with it over the 1.5 years that I've been using it. 10/10 Recommend!

Docker-Compose

My personal Docker-Compose that I use on my production.

version: '3'
services:
  app:
    image: 'jc21/nginx-proxy-manager:latest'
    restart: unless-stopped
    ports:
      - '80:80'
      - '81:81'
      - '443:443'
    environment:
      DB_MYSQL_HOST: "db"
      DB_MYSQL_PORT: 3306
      DB_MYSQL_USER: "npm"
      DB_MYSQL_PASSWORD: "******"
      DB_MYSQL_NAME: "npm"
    volumes:
      - ./data:/data
      - ./letsencrypt:/etc/letsencrypt
  db:
    image: 'jc21/mariadb-aria:latest'
    environment:
      MYSQL_ROOT_PASSWORD: '******'
      MYSQL_DATABASE: 'npm'
      MYSQL_USER: 'npm'
      MYSQL_PASSWORD: '******'
    restart: unless-stopped
    volumes:
      - ./data/mysql:/var/lib/mysql