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

Mr.Bai 3,955 浏览 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端口即可面板
默认账号:[email protected]
默认密码:changeme

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

  1. Mr.Bai
    Mr.Bai 站长

    测试图片[wb_dog3]
    查看图片

分享
请选择语言