Programster's Blog

Tutorials focusing on Linux, programming, and open-source

Deploy Nginx Proxy Manager Through Docker

Prerequisites

Steps

Create a compose.yaml file with the following content:

version: '3.8'
services:
  app:
    image: 'jc21/nginx-proxy-manager:2.10.4'
    restart: unless-stopped
    ports:
      - '80:80'
      - '81:81'
      - '443:443'
    volumes:
      - ./data:/data
      - ./letsencrypt:/etc/letsencrypt

You may wish to check what the latest stable version is from GitHub.

Then run the following to start the service in the background:

docker-compose up -d

Now navigate to your server's IP address on port 81, and enter the default credentials, which are:

  • username: admin@example.com
  • password: changeme

You will then be immediately prompted to change the username and password through the web UI.

Extra Info

Persistent State

Because we have configured volumes, all state will be retained/restored even after removing the Docker containers.

References

Last updated: 5th June 2024
First published: 12th April 2023