水一篇文章《Nginx Proxy Manager 安装》

酷酷的白 1,620 浏览 1

水一篇文章《Nginx Proxy Manager 安装》

水一篇文章《Nginx Proxy Manager 安装》

安装Nginx Proxy Manager的前提是安装了docker和docker-compose
安装docker方法:https://docs.docker.com/get-docker/
安装docker-compose:https://docs.docker.com/compose/install/

新建一个docker-compose.yml,内容填写一下内容:

version: "3"
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

使用命令运行:docker-compose up -d

之后到浏览器访问81端口即可面板
默认账号:admin@example.com
默认密码:changeme

发表评论 取消回复
表情 图片 链接 代码

  1. 酷酷的白
    酷酷的白 站长

    测试图片[wb_dog3]
    查看图片

分享