Aisle Websites & blogs

Nginx Proxy Manager

A reverse proxy with a graphical interface.

docker-compose generator (French)Compare alternatives (French)Official documentation

What is it for?

Nginx Proxy Manager receives all web traffic and forwards it to the right app, with automatic HTTPS certificates. Everything is set up in a few clicks in a web interface, no config file.

Who is it for?

Beginners who want several apps on HTTPS without touching a configuration file.

After installing

  1. Open http://SERVER_IP:81 and create the administrator account right away.
  2. For each app, add a "Proxy Host" to http://CONTAINER_NAME:PORT and tick "Request a new SSL Certificate".
  3. Once your own interface is on HTTPS, close port 81 to the public (firewall): it must not stay open.

The docker-compose

Example behind Traefik. To adapt it (Nginx Proxy Manager, local port…) with a line-by-line explanation, use the generator (in French).

# docker-compose.yml : Nginx Proxy Manager
services:
  npm:
    image: jc21/nginx-proxy-manager:latest
    container_name: nginx-proxy-manager
    restart: unless-stopped
    environment:
      TZ: Europe/Paris
    volumes:
      - ./data:/data
      - ./letsencrypt:/etc/letsencrypt
    ports:
      - "80:80"
      - "443:443"
      - "81:81"
    networks:
      - npm

networks:
  npm:
    name: npm