nginx-proxy-manager部署步骤

nginx-proxy-manager部署步骤

方法步骤来源于互联网,内容粗陋。用于记录自己折腾、闲扯淡的结果。

1、创建nginx_proxy_manager文件夹

mkdir -p docker/data/nginx_proxy_manager

2、切换路径

cd docker/data/nginx_proxy_manager

3、创建docker-compose.yml文件

nano docker-compose.yml

将下列内容粘贴进去,Ctrl+x保存

version: '3.8'

services:

  app:

    image: 'jc21/nginx-proxy-manager:latest'

    restart: unless-stopped

    ports:

      # These ports are in format <host-port>:<container-port>

      - '80:80' # Public HTTP Port

      - '443:443' # Public HTTPS Port

      - '81:81' # Admin Web Port

      # Add any other Stream port you want to expose

      # - '21:21' # FTP

    # Uncomment the next line if you uncomment anything in the section

    # environment:

      # Uncomment this if you want to change the location of

      # the SQLite DB file within the container

      # DB_SQLITE_FILE: "/data/database.sqlite"

      # Uncomment this if IPv6 is not enabled on your host

      # DISABLE_IPV6: 'true'

    volumes:

      - ./data:/data

      - ./letsencrypt:/etc/letsencrypt

4、运行容器

docker compose up -d

5、登陆 ip:81

6、默认登录邮箱密码:

    Email:    [email protected]

    Password: changeme

7、按提示修改登录邮箱、密码

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注