Nginx Proxy Manager

This Will Create a Container for The Nginx Proxy Manager Reverse Proxy and Watchtower (automatically updates ye containers in the Background)

  1. Go To Portainer
  2. Go To Stacks
  3. Click on Add Stack
  4. Choose one of the Compose files below
  5. Deploy the Stack
  6. Enjoy

1.1 Docker Compose (using Path Bindings)

# Core Services (Nginx Proxy Manager & Watchtower)
version: "3.8"
name: "services"


services:
  nginx:
    image: jc21/nginx-proxy-manager
    container_name: nginx
    restart: always
    ports:
      - 80:80     # HTTP Redirect Port
      - 443:443   # HTTPS Redirect Port
      - 81:81     # Management Port
    volumes:
      - /mnt/data/docker/services/nginx/data:/data
      - /mnt/data/docker/services/nginx/letsencrypt:/etc/letsencrypt
    environment:
      - TZ=Europe/Zurich
      - DISABLE_IPV6=true

  watchtower:
    image: containrrr/watchtower
    container_name: watchtower
    restart: always
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock


networks:
  default:
    external: true
    name: proxynet

1.2 (Alternative) Docker Compose (using Docker Volumes)

version: "3.8"
name: "services"

services:
  nginx:
    image: jc21/nginx-proxy-manager:latest
    container_name: nginx
    restart: always
    ports:
      - 80:80     # HTTP Redirect Port
      - 443:443   # HTTPS Redirect Port
      - 81:81     # Management Port
    volumes:
      - nginx_data:/data
      - nginx_letsencrypt:/etc/letsencrypt
    environment:
      - TZ=Europe/Zurich
      - DISABLE_IPV6=true

  watchtower:
    image: containrrr/watchtower
    container_name: watchtower
    restart: always
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock

networks:
  default:
    external: true
    name: proxynet

volumes:
  nginx_data:
  nginx_letsencrypt:

2. Setup ye User Account

  • go to http://<server-ip>:81
  • Login with default admin Account:
    • Username: admin@example.com
    • Password: changeme
  • After the first Login ye need to change username and password
  • Have Fun
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9